Coffee4Clients
Coffee4Clients allows Express.js to render .coffee
files when ?js
is appended to their urls.
Example
-
http://localhost:5000/asd.coffee
alert 'asd' -
http://localhost:5000/asd.coffee?js
{;};
Installing
-
Install it
npm install coffee4clients
Using
-
With Node.js in JavaScript
// Include Coffee4Clients;coffee4clients = ;// Setup with your Express Servercoffee4clients; -
With Node.js in CoffeeScript
# Include Coffee4Clientscoffee4clients = require 'coffee4clients'# Setup with your Express Servercoffee4clientscreateInstanceserver: null # your express server (required)publicPath: '...' # the full path to your server root (required)missingAction: false # the action to forward to when a file is not foundcache: false # whether the responses should be cached
History
-
v0.2 June 29, 2011
- Now supports multiple instances
- Has unit tests
- Requires
?js
to be appended to.coffee
urls
-
v0.1 May 18, 2011
- Initial commit
License
Licensed under the MIT License Copyright 2011 Benjamin Arthur Lupton