File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1035,7 +1035,11 @@ both ``app`` and ``checkout``:
10351035.. code-block :: twig
10361036
10371037 {# templates/products/checkout.html.twig #}
1038- {% block javascripts %}
1038+ {#
1039+ Override an "importmap" block in base.html.twig.
1040+ If you don't have this, add it around the {{ importmap('app') }} call.
1041+ #}
1042+ {% block importmap %}
10391043 {# do NOT call parent() #}
10401044
10411045 {{ importmap('app', 'checkout') }}
@@ -1044,7 +1048,7 @@ both ``app`` and ``checkout``:
10441048 By passing both ``app `` and ``checkout ``, the ``importmap() `` function will
10451049output the ``importmap `` and also add a ``<script type="module"> `` tag that
10461050loads the ``app.js `` file *and * the ``checkout.js `` file. It's important
1047- to *not * call ``parent() `` in the ``javascripts `` block. Each page can only
1051+ to *not * call ``parent() `` in the ``importmap `` block. Each page can only
10481052have *one * importmap, so ``importmap() `` must be called exactly once.
10491053
10501054If, for some reason, you want to execute *only * ``checkout.js ``
You can’t perform that action at this time.
0 commit comments