How to have Assetic + sass work with Symfony2 in Windows? How to have Assetic + sass work with Symfony2 in Windows? windows windows

How to have Assetic + sass work with Symfony2 in Windows?


Just as an update to this question (or for anyone only using sass not compass) if anyone comes here looking for the answer. All that should be needed now is:

assetic:    filters:        cssrewrite: ~        sass:           bin: "<pathtosass>"          apply_to: "\.scss$"parameters:     assetic.ruby.bin: '<pathtoyourrubyhere>'

This is using PHP 5.4


Please see my answer to the question How to use SCSS filter in Symfony2 under Windows?: https://stackoverflow.com/a/9658410/3765

It is a pretty comprehensive coverage of my time spent trying to get Assetic working on Windows.


Based on your example - you shouldn't need to add the cssrewrite filter. Here is how I use Compass from Twig:

{% stylesheets filter='compass' output='css/compiled/*.css' 'css/example.scss' %}    <link rel="stylesheet" href="{{ asset_url }}">{% endstylesheets %}