0.2.1 • Published 10 years ago

iced-coffee-middleware v0.2.1

Weekly downloads
65
License
MIT
Repository
github
Last release
10 years ago

YO!

NPM version

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
  }));
});