Re:Writing HTML by Hand
by the_gipsy on Wednesday September 20, 2023 @03:49AM
(#37581553)
I really love Elm's way of writing html. It's like writing html without closing tags, just indentation.
[ Parent
| on HN ]
Check out haml. Quite similar approach I think.
Re:Writing HTML by Hand
by nikolaplejic on Wednesday September 20, 2023 @08:50AM
(#37583503)
Not equivalent, but arguably more useful for manual authoring: Emmet [0] was all the range a while back, and I still use it to write HTML. It comes naturally if you're used to writing CSS-like selectors, and mostly gets out of the way.
DSL-wise, I've rather enjoyed Clojure's Hiccup [1].
Re:Writing HTML by Hand
by naniwaduni on Wednesday September 20, 2023 @10:59AM
(#37585045)
When writing html for documents and not as code, indenting everything really lost its luster to me, it's really nice to have the content root flush with the left margin.