#36410: Add named template partials to the DTL.
-------------------------------------------+----------------------------
Reporter: Carlton Gibson | Owner: Farhan Ali
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+----------------------------
Completing the cycle begun in 2023, incorporate ''named template
partials'' into the Django Template Language.
Starting with the forum discussion on [
https://forum.djangoproject.com/t
/adding-template-fragments-or-partials-for-the-dtl/21500 Adding template
fragments or partials for the DTL] we added the internal structures
necessary for template partials in #34883.
The third-party [
https://github.com/carltongibson/django-template-partials
django-template-partials] package, first released during the Django 4.2
cycle, has battle-tested the implementation over a full LTS cycle, and
gained significant community uptake.
The project to merge this into Django was accepted for GSoC 2025, with
Farhan Ali Raza implementing it.
The project is to merge to the two template tags, for defining and
rendering a partial, plus the integration with template loader, so that
partial fragments can be loaded by name. A migration guide will be added
to the django-template-partials repo for existing users.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36410>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.