0.0.2 • Published 9 years ago

nested-router v0.0.2

Weekly downloads
8
License
MIT
Repository
-
Last release
9 years ago

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) => {
    
  });
});