From f01296c3136de6d82bfbb4830e2a96b01b50249f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?fabien=20Verni=C3=A8res?= <106905008+fabienVernieres@users.noreply.github.com> Date: Sun, 24 Aug 2025 08:11:07 +0200 Subject: [PATCH] Update asset_mapper.rst I try with {% block importmap %} {{ importmap(['app', 'game']) }} {% endblock %} but it's work with {% block javascripts %} {{ importmap(['app', 'game']) }} {% endblock %} --- frontend/asset_mapper.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index 912f645bf6a..b52dc09f259 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -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']) }} @@ -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