From ec0f5d5dadf3fb0f441dfbe8cfc1137f14e485a9 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 19 Jun 2026 08:06:30 +0200 Subject: [PATCH] Tweak previous merge --- doc/tags/embed.rst | 4 ++-- doc/tags/include.rst | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/tags/embed.rst b/doc/tags/embed.rst index 004dc7f89..45f570090 100644 --- a/doc/tags/embed.rst +++ b/doc/tags/embed.rst @@ -178,13 +178,13 @@ The ``embed`` tag takes the exact same arguments as the ``include`` tag: {% set name = 'Fabien' %} - {# "name" is undefined inside the block #} {% embed "base" only %} + {# "name" is undefined inside the block #} {% block content %}{{ name }}{% endblock %} {% endembed %} - {# "name" is passed explicitly and is available #} {% embed "base" with {'name': name} only %} + {# "name" is passed explicitly and is available #} {% block content %}{{ name }}{% endblock %} {% endembed %} diff --git a/doc/tags/include.rst b/doc/tags/include.rst index 10ca371b5..3ddfb9762 100644 --- a/doc/tags/include.rst +++ b/doc/tags/include.rst @@ -111,4 +111,6 @@ of the templates exist, otherwise it will throw an exception. .. seealso:: - :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. + :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.