Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



It may be showing my age, but I’m a monster who loves HAML to generate my html


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: