This is surprising because the template language in particular feels so anti-PHP, it’s highly opinionated about not mixing code in with the template. I often wish it supported arbitrary Python.
Anyway, thank you Simon :)
Anyway, thank you Simon :)
I've been using Jinja for my own projects for a few years because I wanted more expressive Python code in my templates! I think we didn't quite get the balance right for that in Django.
Well, yes I didn't mean Django from the start! I mean now.
https://docs.djangoproject.com/en/5.2/howto/custom-template-...