News for hackers. Stuff that matters.
Re:Go Package for Building Progressive Web Apps by Sheeny96 on Saturday October 21, 2023 @12:32PM (#37968263)
https://github.com/a-h/templ

Templ is a far more elegant solution for composing HTML within Go

Re:Go Package for Building Progressive Web Apps by adonese on Saturday October 21, 2023 @01:30PM (#37968845)
Pro 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
Re:Go Package for Building Progressive Web Apps by flashgordon on Saturday October 21, 2023 @04:42PM (#37970265)
Holy mother of God. This is exactly what I've been looking for!!
Re:Go Package for Building Progressive Web Apps by austinpena on Saturday October 21, 2023 @03:28PM (#37969809)
Has anyone got this working with IntelliJ?
Re:Go Package for Building Progressive Web Apps by jeroenhd on Saturday October 21, 2023 @04:51PM (#37970322)
I 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.

Re:Go Package for Building Progressive Web Apps by udkl on Sunday October 22, 2023 @02:13AM (#37973218)
Looks like what PHP does !