Re:Maud: A Rust macro for writing HTML
by sunfmin on Tuesday June 07, 2022 @07:10AM
(#31652436)
Similar thing in Go: https://github.com/theplant/htmlgo
[ Parent
| on HN ]
The difference is that maud does most of the work compile-time, so `html! { div { "foo" } }` compiles into literal "<div>foo</div>" hardcoded in the program, without allocating intermediate HTMLTagBuilder objects.