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::
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: