derby-sass
v0.1.1
Published
Derby plugin to add Sass support
Downloads
3
Readme
Derby plugin to add Sass support
Usage
Right after creating your Derby app, add:
// Add Sass support
app.serverUse(module, 'derby-sass');
Make sure this is before any calls to app.loadStyles()
.
After that you can use *.sass
and *.scss
files instead of *.css
Example
index.js
var derby = require('derby');
var app = module.exports = derby.createApp('example', __filename);
// Add Sass support (before loadStyles)
app.serverUse(module, 'derby-sass');
app.loadViews (__dirname);
app.loadStyles(__dirname);
app.get('/', function(page, model) {
page.render();
});
index.html
<Body:>
<h1>Hello world</h1>
index.sass
body
padding 0
margin 0