News for hackers. Stuff that matters.
Re:Templ: A language for writing HTML user interfaces in Go by trommlp on Monday December 11, 2023 @03:52AM (#38598809)
I would like to mention maud in this context:

https://github.com/lambda-fairy/maud

It is refreshingly different from other Rust templating libraries. It uses a proc-macro that compiles your HTML into Rust code. I also happen to use it in conjunction with HTMX and it works very well for me (at least in small projects). You will still have to learn a little bit of "special" syntax though, which you are looking to avoid if I understand you correctly.

Re:Templ: A language for writing HTML user interfaces in Go by norman784 on Monday December 11, 2023 @12:28PM (#38602562)
while it looks nice, I’d prefer html and not to learn yet another DSL, the reason is that migrating is easier between template engines.