Go Package for Building Progressive Web Apps

by greenSunglasson 10/21/2023, 8:59 AMwith 58 comments

by Sheeny96on 10/21/2023, 4:32 PM

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

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

by latchkeyon 10/21/2023, 4:15 PM

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

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

by deweyon 10/21/2023, 4:31 PM

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

by rubicon33on 10/21/2023, 3:59 PM

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

by didipon 10/21/2023, 4:45 PM

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

by awill88on 10/21/2023, 2:50 PM

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

by jtokophon 10/21/2023, 7:00 PM

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.

by ekiauhceon 10/21/2023, 2:17 PM

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”

by omanion 10/21/2023, 5:55 PM

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

by omanion 10/21/2023, 2:34 PM

I have used this and I like it.

by bborudon 10/21/2023, 1:37 PM

Why?

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