#templ — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #templ, aggregated by home.social.
-
@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. -
@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.
-
dev en cours: migration de mon moteur de blog #gibson vers #templ
https://templ.guide -
-
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) 💀 -
go and templ and datastar are working on becoming my new favourite stack for my basic projects #go #and #templ #and #datastar #coding #buildinprivate #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hacktheplanet #hack
-
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!
https://limeleaf.coop/blog/webdev-tech/
#golang #rustlang #templ #maud #webdev #SmallWeb #smolweb #sqlite #postgresql
-
GoTh Stack - #golang, #htmx and #templ: https://www.youtube.com/watch?v=mzR0BcKg2cI
-
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.
-
Simple web app built with #Go #htmx #templ #pocketbase
https://youtube.com/watch?si=K97YI8XXO4zsyRgq&v=Mu6GjKShYrQ
Discussions: https://discu.eu/q/https://youtube.com/watch?si=K97YI8XXO4zsyRgq&v=Mu6GjKShYrQ
-
@runlevel0 You were right, separating the main server from the frontend was a _mistake_, I’ve since moved to #templ and #alpineJS for some small enhancements, with the plan to add #htmx when I have time.
I still have one rest micro service that is talked to internally.
-
@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.
-
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.
-
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. https://pathfinderwiki.com/wiki/Alander_Mangvhune #AlabasterAcademy #Templ… -
🥳 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.