Earls Function Mapper
Custom mapper for earls.
How do I install it?
npm install earls-function-mapper
How do I use it?
var mapper = mapper;var url = url;earls;earls;
The url property is optional if the name and url match and if you don't need arguments in your url. Like products in the example above.
var url = url;earls;
This mapper works well with Coffee-Script to create concise maps.
url 'root', '/', ->url 'products', ->url 'new'url 'create'url 'edit'url 'update', '/update/:productid'url 'show', '/show/:productid'url 'destroy'
Run tests
Tests use mocha and should.
make unittests