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:55:03 -0400 |
| commit | 84142946c0e8dfdda18391e595bd2e53001f2ea6 (patch) | |
| tree | 0101a3ceb44bf2d980e3d613db840d6115fc7cfd /docs | |
| parent | ada0845ddaefb4437e1d49aa781fd87ed9628e8f (diff) | |
[1.7.x] Fixed #24657 -- Fixed include template tag example.
Thanks pattypatpat for the report.
Backport of f47c796b52a3c504d487c2484153fa5d90a25a74 from master
Diffstat (limited to 'docs')
| -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 bbdef42b8d..c5cc794444 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -710,9 +710,11 @@ the variable ``template_name``:: 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" %} |
