1
0
mirror of https://github.com/django/django.git synced 2024-12-27 19:46:22 +00:00

[1.8.x] Fixed #24657 -- Fixed include template tag example.

Thanks pattypatpat for the report.

Backport of f47c796b52 from master
This commit is contained in:
Tim Graham 2015-04-17 07:51:35 -04:00
parent bbfcd9618b
commit f21dd827b7

View File

@ -672,9 +672,11 @@ the variable ``template_name``::
your context. your context.
An included template is rendered within the context of the template that An included template is rendered within the context of the template that
includes it. This example produces the output ``"Hello, John"``: includes it. This example produces the output ``"Hello, John!"``:
* Context: variable ``person`` is set to ``"John"`` and variable ``greeting``
is set to ``"Hello"``.
* Context: variable ``person`` is set to ``"john"``.
* Template:: * Template::
{% include "name_snippet.html" %} {% include "name_snippet.html" %}