home.social

#templ — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #templ, aggregated by home.social.

  1. Got D3 rendering the charts. The design isn't set in stone, but I like it so far.

  2. @sontags @resmo I generally try to do that but it's difficult to judge where to draw the line.
    I need a lot of different data for my templates (using #templ) and I try to avoid doing a lot of logic in those. But the backend data model doesn't trivially map to the view data model, so something has to do the conversion. It's not always clear where to push that logic.

  3. @loop0 Lately, I'm most comfortable with #Go + #Templ + #HTMX (GoTH).
    Since the standard library's ServeMux gained support for HTTP methods I see no need for external routers.
    Middleware I simply write myself, after all, it's just a function decorating a Handler. I wrote a simple package to be able to chain them easily but that's it.

    At work I am writing a pretty complex piece of web application with that stack and so far I'm quite happy. It takes a bit of discipline not to let the endpoints get out of hand because with HTMX that can happen easily. Also, while building this project I slowly built up a Templ UI component library to keep the templates manageable.

    The result of all this is the ability to keep my dependencies to a minimum which is something that's important to me because it makes keeping track of vulnerabilities much easier.

    I'm even in the process of eliminating Tailwind. CSS can so do much these days and Tailwind's concept of composing utility classes doesn't scale well for me.

    #golang

  4. I must say and , are like catnip. 😅 You can do SO much with those two.

    Case in point, . A new framework for targeting mobile and desktop apps. All with go, templ, and . 🫡

    irgo.dev/

  5. I must say #golang and #templ, are like catnip. 😅 You can do SO much with those two.

    Case in point, #irgo. A new framework for targeting mobile and desktop apps. All with go, templ, and #datastar. 🫡

    irgo.dev/

  6. I must say #golang and #templ, are like catnip. 😅 You can do SO much with those two.

    Case in point, #irgo. A new framework for targeting mobile and desktop apps. All with go, templ, and #datastar. 🫡

    irgo.dev/

  7. I must say #golang and #templ, are like catnip. 😅 You can do SO much with those two.

    Case in point, #irgo. A new framework for targeting mobile and desktop apps. All with go, templ, and #datastar. 🫡

    irgo.dev/

  8. I must say #golang and #templ, are like catnip. 😅 You can do SO much with those two.

    Case in point, #irgo. A new framework for targeting mobile and desktop apps. All with go, templ, and #datastar. 🫡

    irgo.dev/

  9. En ce début de vacances, mes parents m'ont demandé de faire une application qui les notifierait lorsqu'il faisait trop chaud dans la serre et qu'il fallait l'ouvrir (mon petit frère électronicien a déjà fait le capteur)
    Je me suis dit que ce serait l'occasion d'apprendre le #golang et d'autres technologies ( #templ #sqlc #alpineJS etc... )
    Maintenant je termine gentiment le backend, et la partie la plus dure m'attend: faire un appli Android (j'ai pas hâte) 💀

  10. I'm in an internal struggle with building things now.

    Do I either use , , , , , , and bask in the greatness of fitting each to perfection? 🤔

    Or do I use , , , , and finish building the app in a day? 😅

  11. Our own @blainsmith  wrote an insightful piece on how and why we embrace a minimalist approach to building web applications at Limeleaf. It's an excellent read for software engineers and product managers alike!

    limeleaf.coop/blog/webdev-tech

    #golang #rustlang #templ #maud #webdev #SmallWeb #smolweb #sqlite #postgresql

  12. I am generating db use with , api with , and page renders with .

    The last thing I'm actually writing is my test with . Which dictate how everything else is built.

    Feels like my workflow has gotten pretty productive. Once I stopped trying to bikeshed. 😅

  13. I finally started to try out . An typesafe template language for . I can't believe I haven't tried it out till now. 😅

    Mix templ with LSPs and you can speed through on pages. 😎

    I'm going to have to make something meaningful with this now aren't I? 😄

    templ.guide/

  14. Hm, templ with golang is quite a bit faster than built-in templates. I'm considering porting my 15 template/html files to #templ now.

  15. @runlevel0 You were right, separating the main server from the frontend was a _mistake_, I’ve since moved to and for some small enhancements, with the plan to add when I have time.

    I still have one rest micro service that is talked to internally.

  16. @lil5 yeah #templ is definitely one I have on my list of packages to try! I’m spending time with #vue as we are ramping up our use at $dayjob as we migrate away from #php. I want to play with templ and #htmx at some point.

  17. @rebelopsio have you heard of templ? It’s the type safety you have from GoLang combined with the compostability of jsx, and it compiles into pure go.

    templ.guide/

  18. Having a good night of sleep really helped me to solve the i18n issue I had with templ. I should write an article about it, as I am now really satisfied with the solution I found. Basically, I implemented a middleware to extract the preferred language from the Accept-Language header and push it into the request context. There it is easily accessible from templ. And I created a templ component to render the translated string.

  19. 4599 AR: Alander Mangvhune executed (#Kintargo)
    Following his arrest a few days ago, Professor #Mangvhune of the Alabaster Academy was executed for three years of serial murders as the Temple Hill Slasher. pathfinderwiki.com/wiki/Alande #AlabasterAcademy #Templ

  20. 🥳 New episode of Go Time!

    #golang is known for it’s fantastic standard library, but there are some places where the libraries can be challenging to use. The html/template package is one of those places. So what alternatives do we have?

    On today’s episode we’re talking about #Templ, an #HTML templating language for Go that has great developer tooling!

    Kris & Jon are joined by Adrian Hesketh, the creator of Templ, and Joe Davidson, one of its maintainers.

    🎧 gotime.fm/291