We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca489ea commit 47494baCopy full SHA for 47494ba
templating.rst
@@ -738,7 +738,15 @@ Linking to Assets
738
739
Templates also commonly refer to images, JavaScript, stylesheets and other
740
assets. Of course you could hard-code the path to these assets (e.g. ``/images/logo.png``),
741
-but Symfony provides a more dynamic option via the ``asset()`` Twig function:
+but Symfony provides a more dynamic option via the ``asset()`` Twig function.
742
+
743
+To use this function, install the *asset* package:
744
745
+.. code-block:: terminal
746
747
+ $ composer require asset
748
749
+You can now use the ``asset()`` function:
750
751
.. configuration-block::
752
0 commit comments