Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Spivak
on May 26, 2023
|
parent
|
context
|
favorite
| on:
That people produce HTML with string templates is ...
You're conflating two things, dynamically creating HTML is great and lets you avoid JS in a lot of cases. It's whether you should treat your HTML document as the tree of nodes that it is in your programming language or treat it like a string.
https://github.com/Knio/dominate
is a Python lib that implements this principal.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/Knio/dominate is a Python lib that implements this principal.