From 47494ba8be24498a7eda1fdc309e5288eb5c60ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michae=CC=88l=20Perrin?= Date: Fri, 1 Dec 2017 15:24:49 +0100 Subject: [PATCH] Templating docs: add the asset package requirement --- templating.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templating.rst b/templating.rst index 0a93376f667..e1934b6f544 100644 --- a/templating.rst +++ b/templating.rst @@ -738,7 +738,15 @@ Linking to Assets Templates also commonly refer to images, JavaScript, stylesheets and other assets. Of course you could hard-code the path to these assets (e.g. ``/images/logo.png``), -but Symfony provides a more dynamic option via the ``asset()`` Twig function: +but Symfony provides a more dynamic option via the ``asset()`` Twig function. + +To use this function, install the *asset* package: + +.. code-block:: terminal + + $ composer require asset + +You can now use the ``asset()`` function: .. configuration-block::