Skip to content

Commit

Permalink
Replace usage of include tag with include function
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 6, 2022
1 parent 6212dfb commit 06edbff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions getting_started/install_existing_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ are conveniently provided by a single template you can include:

.. code-block:: twig
{% include '@NetgenLayoutsStandard/page_head.html.twig' with { full: true } %}
{{ include('@NetgenLayoutsStandard/page_head.html.twig', { full: true }) }}
You can also include javascripts and stylesheets separately, in case you wish
to load stylesheets from the page head and javascripts from the end of the body:

.. code-block:: twig
{% include '@NetgenLayoutsStandard/stylesheets.html.twig' with { full: true } %}
{% include '@NetgenLayoutsStandard/javascripts.html.twig' with { full: true } %}
{{ include('@NetgenLayoutsStandard/stylesheets.html.twig', { full: true }) }}
{{ include('@NetgenLayoutsStandard/javascripts.html.twig', { full: true }) }}
To actually display the resolved layout template in your page, you need to
modify your main pagelayout template to include a Twig block named layout which
Expand Down

0 comments on commit 06edbff

Please sign in to comment.