News for hackers. Stuff that matters.
Re:Maud: A Rust macro for writing HTML by zaarn on Tuesday June 07, 2022 @05:39AM (#31651837)
My projects have no front-end engineer, however. The frontend is written in Rust as well and also uses Maud for HTML templating.

And I dispute it not working with complicated HTML templates, that's handling it fine and integrates very well since I share code between frontend and backend anyway.

Re:Maud: A Rust macro for writing HTML by rbanffy on Tuesday June 07, 2022 @05:43AM (#31651875)
I get that, but Maud is not the first of its kind and the absence of similar engines in web development is a telltale sign it's not the optimal approach.
Re:Maud: A Rust macro for writing HTML by zaarn on Tuesday June 07, 2022 @05:47AM (#31651890)
Well, as mentioned, I've yet to find something that can replace Maud without sacrificing it's advantages (in-code inheritance, code-sharing and compile-time type-safety).

So even if it's not the "optimal approach" as you title it, it's the ergonomic approach for me because it doesn't get in my way.

Re:Maud: A Rust macro for writing HTML by rbanffy on Tuesday June 07, 2022 @07:11AM (#31652450)
For these requirements, it's indeed a good choice. It's just not a use case I've seen often.