Skip to content

Commit f47c796

Browse files
committed
Fixed #24657 -- Fixed include template tag example.
Thanks pattypatpat for the report.
1 parent 02260ea commit f47c796

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/ref/templates/builtins.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,11 @@ The variable may also be any object with a ``render()`` method that accepts a
676676
context. This allows you to reference a compiled ``Template`` in your context.
677677

678678
An included template is rendered within the context of the template that
679-
includes it. This example produces the output ``"Hello, John"``:
679+
includes it. This example produces the output ``"Hello, John!"``:
680+
681+
* Context: variable ``person`` is set to ``"John"`` and variable ``greeting``
682+
is set to ``"Hello"``.
680683

681-
* Context: variable ``person`` is set to ``"john"``.
682684
* Template::
683685

684686
{% include "name_snippet.html" %}

0 commit comments

Comments
 (0)