node-compass icon indicating copy to clipboard operation
node-compass copied to clipboard

Let users handle their own IO

Open yocontra opened this issue 11 years ago • 5 comments

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?

yocontra avatar Jan 02 '14 09:01 yocontra

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 avatar Jan 02 '14 22:01 nathggns

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.

nathggns avatar Mar 24 '14 03:03 nathggns

@nathggns Awesome! Keep me posted

yocontra avatar Mar 24 '14 05:03 yocontra

:+1:

007design avatar Apr 11 '14 18:04 007design

Working on this again now.

nathggns avatar Sep 30 '14 20:09 nathggns