diff --git a/cookbook/assetic/yuicompressor.rst b/cookbook/assetic/yuicompressor.rst index 42b67955cb9..0d2716e1715 100644 --- a/cookbook/assetic/yuicompressor.rst +++ b/cookbook/assetic/yuicompressor.rst @@ -71,22 +71,23 @@ the view layer, this work is done in your templates: .. code-block:: html+jinja - {% javascripts 'js/src/*' filter='yui_js' %} + {% javascripts '@AcmeFooBundle/Resources/public/js/*' filter='yui_js' %} {% endjavascripts %} .. code-block:: html+php javascripts( - array('js/src/*'), + array('@AcmeFooBundle/Resources/public/js/*'), array('yui_js')) as $url): ?> .. note:: - The above example assumes that your JavaScript files are in the ``js/src`` - directory. This isn't important however - you can include your Javascript + The above example assumes that you have a bundle called ``AcmeFooBundle`` + and your JavaScript files are in the ``Resources/public/js`` directory under + your bundle. This isn't important however - you can include your Javascript files no matter where they are. With the addition of the ``yui_js`` filter to the asset tags above, you should @@ -97,14 +98,14 @@ can be repeated to minify your stylesheets. .. code-block:: html+jinja - {% stylesheets 'css/src/*' filter='yui_css' %} + {% stylesheets '@AcmeFooBundle/Resources/public/css/*' filter='yui_css' %} {% endstylesheets %} .. code-block:: html+php stylesheets( - array('css/src/*'), + array('@AcmeFooBundle/Resources/public/css/*'), array('yui_css')) as $url): ?> @@ -122,14 +123,14 @@ apply this filter when debug mode is off. .. code-block:: html+jinja - {% javascripts 'js/src/*' filter='?yui_js' %} + {% javascripts '@AcmeFooBundle/Resources/public/js/*' filter='?yui_js' %} {% endjavascripts %} .. code-block:: html+php javascripts( - array('js/src/*'), + array('@AcmeFooBundle/Resources/public/js/*'), array('?yui_js')) as $url): ?>