node package manager

coffee4clients

Coffee4Clients

Coffee4Clients allows Express.js to render .coffee files when ?js is appended to their urls.

Example

Installing

  1. Install Node.js

  2. Install it

     npm install coffee4clients
    

Using

  • With Node.js in JavaScript

    // Include Coffee4Clients 
    require('coffee-script');
    coffee4clients = require('coffee4clients');
     
    // Setup with your Express Server 
    coffee4clients.createInstance({
        server: 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 found 
        cache: false // whether the responses should be cached 
    });
  • With Node.js in CoffeeScript

    # Include Coffee4Clients 
    coffee4clients = require 'coffee4clients'
     
    # Setup with your Express Server 
    coffee4clients.createInstance {
        server: 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 found 
        cache: 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