Go Package for Building Progressive Web Apps

  • https://github.com/a-h/templ

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

  • Sigh. What is old is new again. It was a terrible idea back then too...

    https://jakarta.apache.org/ecs/

  • I can't come up with a single reason that makes this better, easier, shorter than just using a html + Go templating.

  • Am I the only one who feels like declarative programming fucking sucks?

  • I prefer writing a normal server-side with Go template and use HTMX on the client side.

  • Hold up, they lost me at “declarative syntax” no, it’s Golang. It’s not infrastructure as code. Hard pass, use templates..

  • It’s odd to me that children are added via a Body method. I would assume it would be a Children method; plus body is its own HTML tag.

  • Is this some kind of joke?

    I waited about half a minute for percent counter reach 100%, then it just keep loading with the counter beyond one hundred lol

    So “progressive”

  • Look at the comments here. Are you guys stupid bots? It's about WEBASSEMBLY. Not an html template system.

  • I have used this and I like it.

  • Why?

    Has anyone ever worked on a product where this would be even remotely feasible?