Commit 0b5473c1 by Andrew Nesbitt

updated readme

parent b020012e
......@@ -6,16 +6,35 @@ Node bindings to libsass
## Install
cd libsass && make && cd ..
node-waf configure && node-waf build
## Usage
var sass = require('./sass');
sass.render('body{background:blue; a{color:black;}}');
sass.render('body{background:blue; a{color:black;}}', function(css){
console.log(css)
});
## Connect/Express middleware
Recompile `.scss` files automatically for connect and express based http servers
var server = connect.createServer(
sass.middleware({
src: __dirname
, dest: __dirname + '/public'
, debug: true
}),
connect.static(__dirname + '/public')
);
Heavily inspired by <https://github.com/LearnBoost/stylus>
## TODO
* async cpp
* error handling
* express middleware
* file context
* folder context
* sass compression options
\ 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