From ae1688782100ac7be2bb9b667b48d96ddbc2a3e2 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 20 Jul 2023 09:57:25 -0400 Subject: [PATCH] [StimulusBundle] Adding missing not about ux_controller_link_tags --- src/StimulusBundle/doc/index.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/StimulusBundle/doc/index.rst b/src/StimulusBundle/doc/index.rst index 37d910658eb..3688193c9bf 100644 --- a/src/StimulusBundle/doc/index.rst +++ b/src/StimulusBundle/doc/index.rst @@ -430,6 +430,17 @@ will import all your custom controllers as well as those from ``controllers.json It will also dynamically enable "debug" mode in Stimulus when your application is running in debug mode. +Finally, to output any ``autoimport`` CSS files in your ``controllers.json`` file, +include the ``ux_controller_link_tags()`` function in your base template: + +.. code-block:: html+twig + + {% block stylesheets %} + {{ ux_controller_link_tags() }} + + + {% endblock %} + How are the Stimulus Controllers Loaded? ----------------------------------------