mirror of
https://github.com/django/django.git
synced 2025-11-19 11:15:44 +00:00
|
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
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>
|
||
|---|---|---|
| .. | ||
| auth | ||
| class-based-views | ||
| db | ||
| forms | ||
| http | ||
| i18n | ||
| testing | ||
| async.txt | ||
| cache.txt | ||
| checks.txt | ||
| composite-primary-key.txt | ||
| conditional-view-processing.txt | ||
| email.txt | ||
| external-packages.txt | ||
| files.txt | ||
| index.txt | ||
| install.txt | ||
| logging.txt | ||
| migrations.txt | ||
| pagination.txt | ||
| performance.txt | ||
| security.txt | ||
| serialization.txt | ||
| settings.txt | ||
| signals.txt | ||
| signing.txt | ||
| templates.txt | ||