0.2.1 • Published 10 years ago
iced-coffee-middleware v0.2.1
YO!
This is adapted from the less middleware written by zoramite We have removed LESS specific, replaced it with the coffee-script equivalent, removed dependance on static files, and added inline sourcemaps.
Installation
npm install coffee-middleware
Options
Examples
Connect
var coffeeMiddleware = require('coffee-middleware');
var server = connect.createServer(
coffeeMiddleware({
src: __dirname + '/public',
compress: true
}),
);
Express
var coffeeMiddleware = require('coffee-middleware');
var app = express.createServer();
app.configure(function () {
// Other configuration here...
app.use(coffeeMiddleware({
src: __dirname + '/public',
compress: true
}));
});
0.2.1
10 years ago