Skip to content

Commit f01296c

Browse files
Update asset_mapper.rst
I try with {% block importmap %} {{ importmap(['app', 'game']) }} {% endblock %} but it's work with {% block javascripts %} {{ importmap(['app', 'game']) }} {% endblock %}
1 parent 9daddb2 commit f01296c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/asset_mapper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ both ``app`` and ``checkout``:
11961196
Override an "importmap" block from base.html.twig.
11971197
If you don't have that block, add it around the {{ importmap('app') }} call.
11981198
#}
1199-
{% block importmap %}
1199+
{% block javascripts %}
12001200
{# do NOT call parent() #}
12011201
12021202
{{ importmap(['app', 'checkout']) }}
@@ -1209,7 +1209,7 @@ above, the ``app.js`` file *and* the ``checkout.js`` file).
12091209

12101210
.. warning::
12111211

1212-
Do not call ``parent()`` inside the ``{% block importmap %}`` Twig block. Each
1212+
Do not call ``parent()`` inside the ``{% block javascripts %}`` Twig block. Each
12131213
page can include only one import map, so ``importmap()`` must be called exactly once.
12141214

12151215
If you want to execute *only* ``checkout.js`` (and not ``app.js``), call

0 commit comments

Comments
 (0)