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 @@ -1000,7 +1000,11 @@ both ``app`` and ``checkout``:
1000
1000
.. code-block :: twig
1001
1001
1002
1002
{# templates/products/checkout.html.twig #}
1003
- {% block javascripts %}
1003
+ {#
1004
+ Override an "importmap" block in base.html.twig.
1005
+ If you don't have this, add it around the {{ importmap('app') }} call.
1006
+ #}
1007
+ {% block importmap %}
1004
1008
{# do NOT call parent() #}
1005
1009
1006
1010
{{ importmap('app', 'checkout') }}
@@ -1009,7 +1013,7 @@ both ``app`` and ``checkout``:
1009
1013
By passing both ``app `` and ``checkout ``, the ``importmap() `` function will
1010
1014
output the ``importmap `` and also add a ``<script type="module"> `` tag that
1011
1015
loads the ``app.js `` file *and * the ``checkout.js `` file. It's important
1012
- to *not * call ``parent() `` in the ``javascripts `` block. Each page can only
1016
+ to *not * call ``parent() `` in the ``importmap `` block. Each page can only
1013
1017
have *one * importmap, so ``importmap() `` must be called exactly once.
1014
1018
1015
1019
If, for some reason, you want to execute *only * ``checkout.js ``
You can’t perform that action at this time.
0 commit comments