Commit 84142946 authored by Tim Graham's avatar Tim Graham
Browse files

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

Thanks pattypatpat for the report.

Backport of f47c796b from master
parent ada0845d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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" %}