#36410: Add named template partials to the DTL.
-------------------------------------+-------------------------------------
     Reporter:  Carlton Gibson       |                    Owner:  Farhan
                                     |  Ali
         Type:  New feature          |                   Status:  closed
    Component:  Template system      |                  Version:  dev
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"5e06b970956af4854e970e74990cb971ba31c96b" 5e06b970]:
 {{{#!CommitTicketReference repository=""
 revision="5e06b970956af4854e970e74990cb971ba31c96b"
 Fixed #36410 -- Added support for Template Partials to the Django Template
 Language.

 Introduced `{% partialdef %}` and `{% partial %}` template tags to
 define and render reusable named fragments within a template file.
 Partials can also be accessed using the `template_name#partial_name`
 syntax via `get_template()`, `render()`, `{% include %}`, and other
 template-loading tools.

 Adjusted `get_template()` behavior to support partial resolution, with
 appropriate error handling for invalid names and edge cases. Introduced
 `PartialTemplate` to encapsulate partial rendering behavior.

 Includes tests and internal refactors to support partial context
 binding, exception reporting, and tag validation.

 Co-authored-by: Carlton Gibson <[email protected]>
 Co-authored-by: Natalia <[email protected]>
 Co-authored-by: Nick Pope <[email protected]>
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36410#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070198ab3783ff-fe8dd566-d6c6-458c-8533-86578620bebb-000000%40eu-central-1.amazonses.com.

Reply via email to