From 4c3ba860d26279f9dc2315766b45662467b7b147 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Thu, 15 Jan 2015 08:47:32 +0200 Subject: [PATCH] Update asset_management.rst | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | --- cookbook/assetic/asset_management.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cookbook/assetic/asset_management.rst b/cookbook/assetic/asset_management.rst index 6743796edba..826dab3b8b2 100644 --- a/cookbook/assetic/asset_management.rst +++ b/cookbook/assetic/asset_management.rst @@ -18,11 +18,11 @@ directly: .. code-block:: html+jinja - + .. code-block:: php - + But *with* Assetic, you can manipulate these assets however you want (or load them from anywhere) before serving them. This means you can: @@ -60,7 +60,7 @@ To include JavaScript files, use the ``javascripts`` tag in any template: .. code-block:: html+jinja {% javascripts '@AcmeFooBundle/Resources/public/js/*' %} - + {% endjavascripts %} .. code-block:: html+php @@ -68,7 +68,7 @@ To include JavaScript files, use the ``javascripts`` tag in any template: javascripts( array('@AcmeFooBundle/Resources/public/js/*') ) as $url): ?> - + .. note:: @@ -82,7 +82,7 @@ To include JavaScript files, use the ``javascripts`` tag in any template: {# ... #} {% block javascripts %} {% javascripts '@AcmeFooBundle/Resources/public/js/*' %} - + {% endjavascripts %} {% endblock %} {# ... #} @@ -548,7 +548,7 @@ command will automatically regenerate assets *as they change*: $ php app/console assetic:dump --watch Since running this command in the ``dev`` environment may generate a bunch -of files, it's usually a good idea to point your generated assets files to +of files, it's usually a good idea to point your generated asset files to some isolated directory (e.g. ``/js/compiled``), to keep things organized: .. configuration-block:: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy