Skip to content

Commit

Permalink
Add filter cssrewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
DOEO committed May 21, 2014
1 parent fc2698b commit 0210a35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cookbook/assetic/uglifyjs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,16 @@ helper:

.. code-block:: html+jinja

{% stylesheets '@AcmeFooBundle/Resources/public/css/*' filter='uglifycss' %}
{% stylesheets 'bundles/AcmeFoo/css/*' filter='uglifycss' filter='cssrewrite' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
.. code-block:: html+php

<?php foreach ($view['assetic']->stylesheets(
array('@AcmeFooBundle/Resources/public/css/*'),
array('uglifycss')
array('bundles/AcmeFoo/css/*'),
array('uglifycss'),
array('cssrewrite')
) as $url): ?>
<link rel="stylesheet" href="<?php echo $view->escape($url) ?>" />
<?php endforeach; ?>
Expand Down

0 comments on commit 0210a35

Please sign in to comment.