Hacker News new | ask | show | jobs
by bityard 662 days ago
Every templating engine has to find a balance between doing what you need it to do, and letting you write business logic in the template itself. (Hey there, PHP.) That said, it's possible to write pathlogical templates in just about anything.

I've used Jinja a lot and always thought that it struck just about the right balance.

The docs are also way better than they used to be.

2 comments

I’ve been using Jinja2 for years and years, probably around a decade now. I don’t remember any other docs?
Yeah the docs never really changed all that much. They look more of less the same for 15 years or so.

https://web.archive.org/web/20110727181325/http://jinja.poco...

The answer is not to use a templating engine. TSX is the gold standard here IMO. Using it with https://fresh.deno.dev/ is soooo much nicer than old school templates.