Skip to content

Commit ec0f5d5

Browse files
committed
Tweak previous merge
1 parent 4007231 commit ec0f5d5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

doc/tags/embed.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ The ``embed`` tag takes the exact same arguments as the ``include`` tag:
178178
179179
{% set name = 'Fabien' %}
180180
181-
{# "name" is undefined inside the block #}
182181
{% embed "base" only %}
182+
{# "name" is undefined inside the block #}
183183
{% block content %}{{ name }}{% endblock %}
184184
{% endembed %}
185185
186-
{# "name" is passed explicitly and is available #}
187186
{% embed "base" with {'name': name} only %}
187+
{# "name" is passed explicitly and is available #}
188188
{% block content %}{{ name }}{% endblock %}
189189
{% endembed %}
190190

doc/tags/include.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,6 @@ of the templates exist, otherwise it will throw an exception.
111111

112112
.. seealso::
113113

114-
:doc:`embed<../tags/embed>` allows you to include another template's contents like ``include``, but also allows you to override blocks defined inside the included template.
114+
:doc:`embed<../tags/embed>` allows you to include another template's
115+
contents like ``include``, but also allows you to override blocks defined
116+
inside the included template.

0 commit comments

Comments
 (0)