5 ms·
I really love Elm's way of writing html. It's like writing html without closing tags, just indentation.
by the_gipsy 3y ago
I really love Elm's way of writing html. It's like writing html without closing tags, just indentation.
- rudasn 3y agoCheck out haml. Quite similar approach I think.
- nikolaplejic 3y agoNot 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/ https://emmet.io/ [1] https://github.com/weavejester/hiccup https://github.com/weavejester/hiccup
- naniwaduni 3y agoWhen 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.
- Akronymus 3y agoFor me personally, elmish offers even better usability. But thats probably down to simple familiarity.