A COC routes generator for Express
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
.jshintrc
.npmignore
Gruntfile.coffee
LICENSE-MIT
README.md
package.json

README.md

exprt

A extremely simple Express routes generator, which is non-intrusive, and COC-based.

Getting Started

Install the module with: npm install exprt

var express = require('express')
  , exprt   = require('exprt')
  , path    = require('path');

var app = express();

// scan and register express routes
exprt(app, {
  path: path.join(__dirname, 'routes')
});

Write standard express route handlers, put them in routes/index.js

exports.index = function(req, res) {
  res.send('it works!');
};

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013 xinthink

Licensed under the MIT license.