logoalt Hacker News

littlecranky67yesterday at 11:07 PM1 replyview on HN

Key benefit for reusability and composability in React is IMHO that they don't use templates at all, but everything is a function.


Replies

globular-toasttoday at 7:04 AM

Exactly. There are a few libraries to achieve a similar thing in Python:

* https://htpy.dev/

* https://pypi.org/project/fast_html/

* https://fastht.ml/ (different to above, I think)

* https://github.com/volfpeter/fasthx

Probably others. I strongly prefer this to templating, but I find it makes dyed in the wool Django people squirm.