News for hackers. Stuff that matters.
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.
Re:Writing HTML by Hand by rudasn on Wednesday September 20, 2023 @08:35AM (#37583369)
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].

[0] https://emmet.io/

[1] https://github.com/weavejester/hiccup

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.
Re:Writing HTML by Hand by Akronymus on Wednesday September 20, 2023 @11:14AM (#37585251)
For me personally, elmish offers even better usability. But thats probably down to simple familiarity.