Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slmjkdbtl
on Sept 20, 2023
|
parent
|
context
|
favorite
| on:
Writing HTML by hand
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.
willmartian
on Sept 20, 2023
[–]
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: