I’m aware of this issue, although there isn’t a ticket for it right now. Please 
create an issue on the Symfony2 tracker:
https://github.com/symfony/symfony/issues

Thanks!
Kris
On Monday, May 16, 2011 at 5:46 AM, matteosister wrote:
Hello everybody!
> I'm trying to configure assetic to work with compass and scss.
> I don't understand if I have (in some way) to manually specify to the
> compass filter to run sass with --scss flag, or if assetic is supposed
> to manage the file extension.
> 
> The CompassFilter from Assetic inherit from SassFilter, and, inside
> its constructor, just set the compass flag.
> 
> $this->setCompass(true);
> 
> So I think that the SassFilter should manage the scss or sass file
> extension.
> 
> This is my configuration:
> in config.yml
> assetic:
>  debug: %kernel.debug%
>  use_controller: false
>  sass: "/var/lib/gems/1.8/bin/sass"
>  filters:
>  cssrewrite: ~
>  compass: ~
> 
> in my twig template:
> 
> {% stylesheets "@MyBundle/Resources/compass/sass/screen.scss"
> filter="compass" %}
> <link href="{{ asset_url }}" media="screen, projection"
> rel="stylesheet" type="text/css" />
> {% endstylesheets %}
> 
> my screen.scss is just:
> 
> @import "compass/reset";
> body {
>  background-color: #DDD;
>  font-size: 62.5%;
> }
> 
> a compass import (just to make sure it's used) and a bg-color for the
> body.
> 
> The only way I found to make all things work is to manually add in
> CompassFilter constructor:
> $this->setScss(true);
> 
> But there must be a better way...maybe through config.yml?
> 
> Many thanks in advance!
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
> 
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
> 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to