This is a feature I really miss in Respect/Rest is, to allow subrouters. Eg. define sub routers: ``` php $blog = new Router; $blog->get('/', function() { return 'This is my Blog'; }); $site = new Router; $site->get('/', function() { return 'This is the main site'; }); $site->get('/contact', function() { return 'Contact'; }); ``` And then have a master: ``` php $r3 = new Router; $r3->get('/blog', $blog); $r3->get('/site', $site); ``` If you like the Idea, I may also offer an implementation, but this takes a week or two. So that `/site/contact` will result in `Contact` and `/blog` will result in `This is my Blog`
Activity
emestee commentedon Dec 28, 2015
Seconded, this would be extremely useful.
Janokapapa commentedon Jan 3, 2016
it would be awesome