Lightweight mixin library to help you get the best of Stylus.
$ npm install chouchenn
Below is an example of how to utilize Chouchenn and Stylus with the connect framework (or Express).
var connect = require('connect')
, stylus = require('stylus')
, chouchenn = require('chouchenn');
var server = connect();
function compile(str, path) {
return stylus(str)
.set('filename', path)
.set('compress', true)
.use(chouchenn());
}
server.use(stylus.middleware({
src: __dirname
, compile: compile
}));
To gain access to everything Chouchenn has to offer, simply add:
@import 'chouchenn'
Checkout the documentation here: http://chouchenn.switch.paris
You will first need to install the dependencies:
$ npm install -d
Run the automated test cases:
$ npm test
Made with care by the Switch Team, composed of: