django/tests/template_tests/templates
farhan 5e06b97095
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
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 <carlton@noumenal.es>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2025-08-14 21:53:14 -03:00
..
first
priority
second
template_tests
27584_child.html
27584_parent.html
27956_child.html
27956_parent.html
broken_base.html
include_tpl.html
included_base.html
included_content.html
inclusion.html
inclusion_base.html
inclusion_extends1.html
inclusion_extends2.html
index.html
partial_base.html Fixed #36410 -- Added support for Template Partials to the Django Template Language. 2025-08-14 21:53:14 -03:00
partial_child.html Fixed #36410 -- Added support for Template Partials to the Django Template Language. 2025-08-14 21:53:14 -03:00
partial_examples.html Fixed #36410 -- Added support for Template Partials to the Django Template Language. 2025-08-14 21:53:14 -03:00
recursive_include.html
recursive_relative_include.html
response.html
ssi include with spaces.html
ssi_include.html
test_context.html
test_context_stack.html
test_extends_block_error.html
test_extends_block_error_parent.html
test_extends_error.html
test_incl_tag_use_l10n.html
test_include_error.html