We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cac7c2e commit cf952daCopy full SHA for cf952da
book/templating.rst
@@ -561,8 +561,10 @@ Including this template from any other template is simple:
561
562
The template is included using the ``{{ include() }}`` function. Notice that the
563
template name follows the same typical convention. The ``articleDetails.html.twig``
564
-template uses an ``article`` variable. This is passed in by the ``list.html.twig``
565
-template using the ``with`` command.
+template uses an ``article`` variable. This could be passed in by the ``list.html.twig``
+template using the ``with`` command supported on a twig ``include`` tag. In this
566
+case however, we opt to use the twig ``include`` function which passes context automatically
567
+and passes also optional hashes.
568
569
.. tip::
570
0 commit comments