News for hackers. Stuff that matters.
Re:Django: What's new in 6.0 – Adam Johnson by pier25 on Tuesday December 09, 2025 @09:44PM (#46213424)
Amazing that Django didn't have this until 2025
Re:Django: What's new in 6.0 – Adam Johnson by Hamuko on Wednesday December 10, 2025 @03:21AM (#46215377)
Wouldn’t Jinja2 macros count?
Re:Django: What's new in 6.0 – Adam Johnson by sgt on Wednesday December 10, 2025 @10:08AM (#46218507)
I stayed away from Jinja2 ... was under the impression it has lower performance. But I could have been wrong all these years.
Re:Django: What's new in 6.0 – Adam Johnson by Hamuko on Wednesday December 10, 2025 @04:04PM (#46223832)
>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/#al...

Re:Django: What's new in 6.0 – Adam Johnson by simonw on Wednesday December 10, 2025 @07:24AM (#46216931)
It's had includes and custom template tags for over a decade. Partials are a slightly nicer design for a subset of that pattern.