docpad / docpad-plugin-sass

Adds support for the SASS and SCSS CSS pre-processors to DocPad. It also supports the Compass framework.
Other
13 stars 6 forks source link

Native sass #11

Closed tasuki closed 11 years ago

tasuki commented 11 years ago

I migrated from Middleman to DocPad specifically to be able to drop Ruby dependencies! There's a (semi) native javascript node-sass library. Why does DocPad use the original implementation instead of node-sass?

balupton commented 11 years ago

Non-original copies of SASS do not support ruby extensions such as compass - https://github.com/andrew/node-sass/issues/54?source=cc - I also know that the sass.js by visionmedia didn't work too well, however this node-sass library seems more mature.

We could provide it as an option, where if you don't use any extensions, you can use the node edition. Alternatively, it could just be a new plugin.

tasuki commented 11 years ago

Benjamin, thank you for your answer (by the way, you're doing awesome work on DocPad and few maintainers are as responsive as you are).

That's a good point about Compass, I didn't realize. Both providing it as another option and creating a new plugin seem like introducing a bit more chaos into the ecosystem while not really solving all that much (people who use Sass will usually have it already installed anyway). Plus node-sass just wraps some binaries, which is not that awesome.

tasuki commented 11 years ago

Ah, should've known that javascript-land uses Stylus instead of SASS! (whose variables and loops actually look nicer than SASS)

10xLaCroixDrinker commented 11 years ago

I'm going to spend some time this week working on a node-sass option. Or @balupton should I just make a new plugin?

balupton commented 11 years ago

New plugin. Fork of this will be fine. Combining rendering engines turned out to be a bad idea (we tried that with a docpad-plugin-coffee plugin which ended up being split into coffeekup, coffeescript, js2coffee, html2coffeekup).

10xLaCroixDrinker commented 11 years ago

https://github.com/jking90/docpad-plugin-nodesass