views:

50

answers:

1

I'm currently experimenting with Symfony/SASS/Compass.

I use sfSassyCssPlugin (http://github.com/vicb/sfSassyCssPlugin) to automatically compile my .scss files. If i want to use compass with this plugin, do i need to modify the plugin to use another compiler (compass instead of sass)? How to use Compass best with Symfony projects?

Thanks for pointing me in the right direction!

+1  A: 

I've never used the sfSassyCSSPlugin, but, after looking it up, Compass seems like a much simpler use case to me; I'd probably use it in lieu of the plugin. That said, I've never been a fan of Symfony so my judgment may be clouded. Compass doesn't worry about your app's runtime. You edit, you compile, you run. No Symfony config files to mess with, no operational changes between different environments, etc.

Compass will also "watch" for changes and just compile each time one of your .scss or, my preference, .sass files changes. You don't have to give it a second thought.

Rob Wilkerson
sfSassCSSPlugin is used to automatically compile changed .sass files , to give feedback about the compilation and to make the compilation process configurable from project configuration files. I like those features. When you say that compass is 'whatching' for changes, do you mean that it only compiles those files that were changed, but you still have to manually start the compilation process? That flow is not that userfriendly when working in a team with designers, who need to see their changes when they change their code - hassle-free...
Sewdn
Compass supports a `compass watch` subcommand that immediately (well, within one second) re-compiles any source files that it sees changed. But I think you could use another tool to kick off a `compass compile` when files have changed.
Brandon Craig Rhodes
+1, compass watch is very convenient. It just runs in the background (in a terminal window) while you develop.
Andrew Vit