Do you think it would make sense to add a development mode in which the sass gets automatically recompiled on every page load? If the performance wasn't insanely awful that could be my holy grail of drupal sass.

Looking forward to getting time to try out compass. thanks

Comments

Anonymous’s picture

Jody:

In theory, newer versions of Sass cache some information that makes recompiling less resource intensive. It should cost almost nothing to try to recompile a folder of up-to-date stylesheets.

I'm concerned about opening a shell and executing a command on every page request. If the shell process doesn't terminate, the page request won't finish.

I'll see what I can do to make this an option before the first release.

Anonymous’s picture

Judy: I think this might be possible if I tie it to rebuilding the theme registry. Zen and I'm sure other themes and probably even a contrib module allow you to rebuild the theme registry on every page load. This is useful during theme development. It's also good because it can be disabled when you don't want it anymore. Would this suit you?

Flying Drupalist’s picture

Can it be a separate option in module config?

mattcasey’s picture

I second judy's request - bang that feature would be perfect. I edit CSS with firebug so am constantly switching between the browser and my text editor to do theming. A feature to turn off/on would be nice, maybe with a big security warning for people unaware.

- matt

Anonymous’s picture

Status: Active » Fixed

I have added this feature to the Compass development branch. When the theme registry is regenerated, Compass updates the CSS files for the active theme. When you use Devel module or Zen theme, you can rebuild the theme registry on each page request. Using this feature when Compass module is enabled basically allows constant compilation.

I will probably add a checkbox to the Compass settings to make this optional, because there are some reasons why the theme registry could be emptied during a site's normal operation, and we don't want Compass module to bomb out.

http://drupal.org/cvs?commit=348398

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.