Skip to content

Commit ad75077

Browse files
committed
bug #19312 [AssetMapper] Fix importmap code example with multiple entrypoints (smnandre)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] Fix importmap code example with multiple entrypoints Fix #19311 importmap twig extension method does indeed require an array or a string, and not a variadic : https://github.com/symfony/symfony/blob/6.4/src/Symfony/Bridge/Twig/Extension/ImportMapRuntime.php Commits ------- ebca2e9 Update asset_mapper.rst
2 parents 9bf908e + ebca2e9 commit ad75077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/asset_mapper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ both ``app`` and ``checkout``:
10421042
{% block importmap %}
10431043
{# do NOT call parent() #}
10441044
1045-
{{ importmap('app', 'checkout') }}
1045+
{{ importmap(['app', 'checkout']) }}
10461046
{% endblock %}
10471047
10481048
By passing both ``app`` and ``checkout``, the ``importmap()`` function will

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy