Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/asset_mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ both ``app`` and ``checkout``:
Override an "importmap" block from base.html.twig.
If you don't have that block, add it around the {{ importmap('app') }} call.
#}
{% block importmap %}
{% block javascripts %}
{# do NOT call parent() #}

{{ importmap(['app', 'checkout']) }}
Expand All @@ -1209,7 +1209,7 @@ above, the ``app.js`` file *and* the ``checkout.js`` file).

.. warning::

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

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