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

I use whatever programming language to generate HTML string from a simple function like h("div", { class: "box" }, [ ... ]), so I can use variables, loops etc.


You might like my tiny library: https://hdot.dev/

It is a bit terser:

h.div.class('box')(...)




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: