4 ms·
Amazing that Django didn't have this until 2025
by pier25 11mo ago
Amazing that Django didn't have this until 2025
- Hamuko 11mo agoWouldn’t Jinja2 macros count?
- sgt 11mo agoI stayed away from Jinja2 ... was under the impression it has lower performance. But I could have been wrong all these years.
- Hamuko 11mo ago>For nearly all cases, Django’s built-in template language is perfectly adequate. However, if the bottlenecks in your Django project seem to lie in the template system and you have exhausted other opportunities to remedy this, a third-party alternative may be the answer. >Jinja2 can offer performance improvements, particularly when it comes to speed. https://docs.djangoproject.com/en/6.0/topics/performance/#alternatives-to-django-s-template-language https://docs.djangoproject.com/en/6.0/topics/performance/#al...
- simonw 11mo agoIt's had includes and custom template tags for over a decade. Partials are a slightly nicer design for a subset of that pattern.