Skip to content

Commit

Permalink
minor #1016 [StimulusBundle] Adding missing not about ux_controller_l…
Browse files Browse the repository at this point in the history
…ink_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
  • Loading branch information
weaverryan committed Aug 15, 2023
2 parents ced15b6 + ae16887 commit 4f420d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/StimulusBundle/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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?
----------------------------------------

Expand Down

0 comments on commit 4f420d6

Please sign in to comment.