Skip to content

Commit 4f420d6

Browse files
committed
minor #1016 [StimulusBundle] Adding missing not about ux_controller_link_tags (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [StimulusBundle] Adding missing not about ux_controller_link_tags | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | None | License | MIT This is in the recipe - https://github.com/symfony/recipes/blob/2cf7ec6e8e08f9d9dfa2e21ab7438092b1a69902/symfony/stimulus-bundle/2.9/manifest.json#L40 - but wasn't mentioned here. Commits ------- ae16887 [StimulusBundle] Adding missing not about ux_controller_link_tags
2 parents ced15b6 + ae16887 commit 4f420d6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/StimulusBundle/doc/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,17 @@ will import all your custom controllers as well as those from ``controllers.json
430430
It will also dynamically enable "debug" mode in Stimulus when your application
431431
is running in debug mode.
432432

433+
Finally, to output any ``autoimport`` CSS files in your ``controllers.json`` file,
434+
include the ``ux_controller_link_tags()`` function in your base template:
435+
436+
.. code-block:: html+twig
437+
438+
{% block stylesheets %}
439+
{{ ux_controller_link_tags() }}
440+
441+
<!-- ... -->
442+
{% endblock %}
443+
433444
How are the Stimulus Controllers Loaded?
434445
----------------------------------------
435446

0 commit comments

Comments
 (0)