Hacker News new | ask | show | jobs
by trommlp 922 days ago
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.

1 comments

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.