mirror of
https://github.com/django/django.git
synced 2025-11-20 11:36:04 +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>
|
||
|---|---|---|
| .. | ||
| i18n | ||
| __init__.py | ||
| test_autoescape.py | ||
| test_basic.py | ||
| test_builtins.py | ||
| test_cache.py | ||
| test_comment.py | ||
| test_cycle.py | ||
| test_debug.py | ||
| test_exceptions.py | ||
| test_extends.py | ||
| test_filter_syntax.py | ||
| test_filter_tag.py | ||
| test_firstof.py | ||
| test_for.py | ||
| test_if.py | ||
| test_if_changed.py | ||
| test_include.py | ||
| test_invalid_string.py | ||
| test_list_index.py | ||
| test_load.py | ||
| test_lorem.py | ||
| test_multiline.py | ||
| test_named_endblock.py | ||
| test_now.py | ||
| test_numpy.py | ||
| test_partials.py | ||
| test_querystring.py | ||
| test_regroup.py | ||
| test_resetcycle.py | ||
| test_setup.py | ||
| test_simple_tag.py | ||
| test_spaceless.py | ||
| test_static.py | ||
| test_template_tag.py | ||
| test_url.py | ||
| test_verbatim.py | ||
| test_width_ratio.py | ||
| test_with.py | ||