Posted by alex.pilon on January 10, 2011 at 2:10pm
A co worker showed me http://sass-lang.com last week and after a some searching I found this project http://code.google.com/p/phamlp/.
I threw together some code over the weekend to use SASS / SCSS compiling from this library and we would like to start a module project around this idea.
Anyone have any comments or suggestions to include?
Comments
Sounds great, some ideas
Right now I use the scaffold module which does alot of similar things. I think you could get some good ideas from looking at that project.
Things I like:
1. call a Scaffold stylesheet from an url
2. scaffold_add_css($path, $type, $media, $preprocess);
3. add your stylesheets to the .info file
Things I would like to see:
1. Option to process all css files that are added via drupal_add_css()
2. A way to use scaffold with Context module's layouts
Thanks for the feedback
Hi gmclelland,
The code I threw together over the weekend already supports using stylesheets added by drupal_add_css(). I haven't myself used Context very much, but I imagine the way that I've got this working would support that module.
Thanks
SASS module
There's already a SASS module. It's abandoned, so you could take that over rather than creating a duplicate project.
Its strange that I never
Its strange that I never found this in searching, however this module is not quite the same in what I intend my module to do. Is it still worth trying to take it over? I'm thinking I should create a new module because its actually wrapping the phamlp sass interpreter rather than the ruby gem available on sass-lang.com.
Yes
Yes, I'd say it's worth taking it over. That kind of implementation detail isn't a great reason to create a new project, especially when the existing project needs a maintainer.
Compass or nothing
Hi!
just to say that PHamlP was to me way to buggy when I tried it for a month or so. It really can't be used seriously. The best alternative if you want to integrate/use SASS is to my opinion the http://drupal.org/project/compass module (which still requires the installation of compass on the server).