Conduttore
Features
- Fast, very fast!!
- Multipurpose
- Environment agnostic - isomorphic implementation
- Purpose agnostic (i.e. not just for URLs routing)
- Automatic route parameters retrieval and type coercion
Installation
Using NPM with:
npm install git://github.com/cesarenaldi/conduttore.git
Using bower.js:
bower install git://github.com/cesarenaldi/conduttore.git
Example
var conduttore = var router = conduttore({ aliases: ':controller': ':text' ':action': ':text' params: ':type': 'topolino' 'pluto' routes: '/:controller/:action/:type': handler '*': defaultHandler }) // retrieve the route value (a function in this case)router // or invoke the route handlerrouter
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) 2014 Cesare Naldi
Licensed under the MIT license.