File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -561,8 +561,10 @@ Including this template from any other template is simple:
561
561
562
562
The template is included using the ``{{ include() }} `` function. Notice that the
563
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.
564
+ template uses an ``article `` variable. This could be passed in by the ``list.html.twig ``
565
+ 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.
566
568
567
569
.. tip ::
568
570
You can’t perform that action at this time.
0 commit comments