3 ms·
https://github.com/a-h/templ https://github.com/a-h/templ Templ is a far more elegant solution for composing HTML within Go
by Sheeny96 3y ago
https://github.com/a-h/templ https://github.com/a-h/templ
Templ is a far more elegant solution for composing HTML within Go
- adonese 3y agoPro hype here, BUT add htmx to it and it's a match made in heaven. Rationale: templ is a template engine with the same syntax as go (so no need to learn or be worried about any new syntax). Htmx makes html more powerful
- flashgordon 3y agoHoly mother of God. This is exactly what I've been looking for!!
- austinpena 3y agoHas anyone got this working with IntelliJ?
- jeroenhd 3y agoI don't see how it compares. Go-app does page rendering in the frontend, in this website's case based on Markdown files. It does have some backend generation capabilities (for SEO, apparently) but that's not its main feature. I suppose you could probably port templ to a frontend framework through WASM, but I don't know why you would go through the effort when go-app is already there.
- udkl 3y agoLooks like what PHP does !