diff options
author | Tim Graham <timograham@gmail.com> | 2015-04-17 07:51:35 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-04-17 07:53:57 -0400 |
commit | f47c796b52a3c504d487c2484153fa5d90a25a74 (patch) | |
tree | aec137d12784d1c6c19487bc178950c5c6d6fa13 | |
parent | 02260ea3f61b2fe0a0178528526101ff578c7400 (diff) | |
download | django-f47c796b52a3c504d487c2484153fa5d90a25a74.tar.gz |
Fixed #24657 -- Fixed include template tag example.
Thanks pattypatpat for the report.
-rw-r--r-- | docs/ref/templates/builtins.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index f51e70dcac..589c220844 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -676,9 +676,11 @@ The variable may also be any object with a ``render()`` method that accepts a context. This allows you to reference a compiled ``Template`` in your context. 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:: {% include "name_snippet.html" %} |