summaryrefslogtreecommitdiff
path: root/docs/topics/templates.txt
AgeCommit message (Collapse)Author
2025-08-28Fixed #36570 -- Removed unnecessary :py domain from documentation roles.SaJH
Signed-off-by: SaJH <wogur981208@gmail.com>
2025-08-25Refs #36485 -- Rewrapped docs to 79 columns line length.David Smith
Lines in the docs files were manually adjusted to conform to the 79 columns limit per line (plus newline), improving readability and consistency across the content.
2025-08-25Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in ↵David Smith
docs.
2025-08-14Fixed #36410 -- Added support for Template Partials to the Django Template ↵farhan
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>
2023-04-21Added meaningful titles to ..admonition:: directives.Mariusz Felisiak
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-10Refs #34140 -- Applied rst code-block to non-Python examples.Carlton Gibson
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
2021-11-04Corrected multiply defined labels in docs.Mariusz Felisiak
2020-04-30Fixed #25712 -- Reorganized templates docs.David Smith
2020-04-07Fixed highlightlang deprecation warning on Sphinx 1.8+.Mariusz Felisiak
2020-02-19Fixed typos in docs and a test comment.Yoo In Keun
2019-09-06Fixed #30573 -- Rephrased documentation to avoid words that minimise the ↵Tobias Kunze
involved difficulty. This patch does not remove all occurrences of the words in question. Rather, I went through all of the occurrences of the words listed below, and judged if they a) suggested the reader had some kind of knowledge/experience, and b) if they added anything of value (including tone of voice, etc). I left most of the words alone. I looked at the following words: - simply/simple - easy/easier/easiest - obvious - just - merely - straightforward - ridiculous Thanks to Carlton Gibson for guidance on how to approach this issue, and to Tim Bell for providing the idea. But the enormous lion's share of thanks go to Adam Johnson for his patient and helpful review.
2019-04-18Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, ↵Ramiro Morales
comments and hints.
2019-02-11Fixed indentation in docs/topics/templates.txt.Jonatan Alexis Anauati
2018-10-18Updated Jinja2 static tag example to use django.templatetags.Andy Chosak
As of cf546e11ac76c8dec527e39ff8ce8249a195ab42, this is the canonical way to invoke the static tag.
2018-10-15Fixed #29817 -- Deprecated settings.FILE_CHARSET.Jon Dufresne
2018-01-20Fixed #28343 -- Add an OS chooser for docs command line examples.Ramiro Morales
2017-09-22Removed versionadded/changed annotations for 1.11.Tim Graham
2017-06-26Refs #23919 -- Stopped inheriting from object to define new style classes.Mariusz Felisiak
Tests and docs complement to cecc079168e8669138728d31611ff3a1e7eb3a9f.
2017-05-22Updated various links in docs to avoid redirectsClaude Paroz
Thanks Tim Graham and Mariusz Felisiak for review and completion.
2017-03-06Fixed #26817 -- Doc'd downsides and alternatives to Jinja2 context processors.Tim Graham
Thanks Aymeric Augustin and Carl Meyer.
2017-01-27Fixed #27678 -- Warned that the template system isn't safe against untrusted ↵andrewnester
authors.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super() in docs.chillaranand
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Removed versionadded/changed annotations for 1.10.Tim Graham
2016-10-04Documented render_to_string()'s `using` parameter.Corey Farwell
2016-06-28Fixed #24694 -- Added support for context_processors to Jinja2 backend.Berker Peksag
2016-05-20Removed versionadded/changed annotations for 1.9.Tim Graham
2016-03-31Fixed #26410 -- Added a docs example for loader.render_to_string().Tim Graham
2016-03-25Fixed #26408 -- Updated link to DEP 182.Aymeric Augustin
Thanks kaifeldhoff for the report.
2016-03-14Fixed #25804 -- Documented additions to Jinja2 context.Moritz Sichert
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-23Fixed #25969 -- Replaced render_to_response() with render() in docs examples.Tim Graham
2015-11-12Fixed #25469 -- Added autoescape option to DjangoTemplates backend.Aaron Elliot Ross
Thanks Aymeric for the initial patch and Carl for review.
2015-09-23Removed versionadded/changed annotations for 1.8.Tim Graham
2015-09-23Removed dictionary and context_instance parameters for render functions.Tim Graham
Per deprecation timeline.
2015-09-23Removed dirs parameter in template engine methods and related funtions.Tim Graham
Per deprecation timeline.
2015-09-23Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham
2015-07-27Fixed #25159 -- Removed brackets from class/function/method signatures in docs.Tim Graham
Thanks hellbeast for the initial patch.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
2015-05-06Fixed #24119, #24120 -- Formalized debug integration for template backends.Preston Timmons
2015-04-16Fixed #24646 -- Fixed jinja2 example on Python 2.Tim Graham
2015-03-30Documented jinja2 install requirement.Tim Graham
2015-02-15Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin
2015-02-15Documented how to set up the Jinja2 environment.Aymeric Augustin
This may also help with "Why do context processors not work in Jinja2 templates?" etc.
2015-02-01Removed versionadded/changed notes for 1.7.Tim Graham
2015-01-10Wrote main documentation for templates.Aymeric Augustin
2015-01-10Moved doc on the DTL's syntax to the ref/ section.Aymeric Augustin
This makes room for a more general introduction about templating. Updated some links to point to the new location, but kept those that didn't talk specifically about the DTL.
2014-12-28Deprecated TEMPLATE_STRING_IF_INVALID.Aymeric Augustin