I'm using JRuby to use compass for compiling sass css
I know how to compile scss file using compass:
compiler = Compass::Compiler.new(
# Compass working directory
'.',
# Input directory
'styles/scss',
# Output directory
'styles/css',
# Compass options
{ :style => :scss}
)
compiler.compile('test.scss','test.css')
BUT I'd like to compile some compass source that I have in a String rather than in a file I've been diving into Compass::Compiler source but I've not seen any way to compile a scss string instead of a file
NOTE: Using SASS compiler directly instead of compass I can compile a scss string
engine = Sass::Engine.new(source,:syntax => :scss)
result = engine.render