nested-router
v0.0.2
Published
nested-router =============
Downloads
5
Readme
nested-router
I'm just exploring ...
- looking for the essence of nested routing
- stateless (pure functions)
// ES6
var { match, map } = require('nested-router');
var parent = () => 'root';
var child1 = () => 'child1';
var child2 = () => 'child2';
var grandchild = () => 'grandchild';
// map some routes
var routes = map((match) => {
match('/', parent, (match) => {
});
});