Commit bd7f9014 by Aaron Leung

Merge branch 'master' of github.com:hcatlin/libsass

parents 4228364d 33ed00df
/*
This is when you want to compile a whole folder of stuff
*/
var opts = sass_new_context();
opts->sassPath = "/Users/hcatlin/dev/asset/stylesheet";
opts->cssPath = "/Users/hcatlin/dev/asset/stylesheets/.css";
opts->includePaths = "/Users/hcatlin/dev/asset/stylesheets:/Users/hcatlin/sasslib";
opts->outputStyle => SASS_STYLE_COMPRESSED;
sass_compile(opts, &callbackfunction);
/*
This is when you want to compile a string
*/
opts = sass_new_context();
opts->inputString = "a { width: 50px; }";
opts->includePaths = "/Users/hcatlin/dev/asset/stylesheets:/Users/hcatlin/sasslib";
opts->outputStyle => SASS_STYLE_EXPANDED;
var cssResult = sass_compile(opts, &callbackfunction);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment