Re:Aramid: Create Strongly-Typed HTML Components in C#
by wtetzner on Sunday November 13, 2016 @07:09PM
(#12946582)
> I like the idea, but I think this kind of thing feels obtuse in languages like C# and Java where the "templates" are 100% written with the hosted language.
I agree, but it's not that bad. I do think j2html [1] has a cleaner look than Aramid.
Some languages can work around this by having flexible type definitions and syntax to make the DSL much closer to the target template (for an example, see: http://www.lihaoyi.com/scalatags/). This works pretty well to avoid all those field declaration and "new" keywords.