nathggns / node-compass

Compass middleware for node.js.
43 stars 13 forks source link

Let users handle their own IO #29

Open yocontra opened 10 years ago

yocontra commented 10 years ago

I should be able to give a string to the library and have it return CSS. Currently you can only give it a file path and it will handle reading and writing to the disk. For stuff like on the fly compilation and build system plugins this is really terrible. I know you aren't responsible for the way compass was designed but there has to be a hacky/creative way to solve the problem. Does compass take input via stdin?

nathggns commented 10 years ago

There is probably a hacky way to do this, but I'm not sure if it exists within the scope of this project. Lets see what the result of https://github.com/chriseppstein/compass/issues/1499 is.

nathggns commented 10 years ago

I'm going to write this I think. In the development branch, the compiler has now been separated from the rest of the system and is requirable as a separate module to the middleware, so this should definitely be possible.

I'll have a look into doing it, I'm going to put it under the 1.0 milestone as I'm pretty sure I can do it now using sass --compass.

yocontra commented 10 years ago

@nathggns Awesome! Keep me posted

007design commented 10 years ago

:+1:

nathggns commented 9 years ago

Working on this again now.