2 ms·
I prefer not to write HTML, but have it generated by an eDSL. Elm has Html, Kotlin has kotlinx.html, but there are many more. Nice ones are generated from the W
by cies 3y ago
I prefer not to write HTML, but have it generated by an eDSL. Elm has Html, Kotlin has kotlinx.html, but there are many more. Nice ones are generated from the W3C html spec (as XML), kotlinx.html does this for instance.
This way HTML is "just code", I can put break points in, it allows for some type-safety and lets me use IDE tooling to refactor/etc.
- xp84 3y agoIt may be showing my age, but I’m a monster who loves HAML to generate my html
- cies 3y agoI loved HAML (and RoR) when I was a dyn-lang believer. I've since learned some Haskell and now believe in strong typing. This also drove me away from HAML. Kotlinx.html is pretty close being a type safe HAML.