Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created April 12, 2013 14:25
Show Gist options
  • Save fritz-gerneth/5372375 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/5372375 to your computer and use it in GitHub Desktop.
var view = new Controller.View(Template['account.layout'], Template['account.index']);
var routeList = new Router.SimpleRouteList([
new Router.Routes.Segment('/:module[/[:action]]', {module: 'index', action: 'index'})
]);
var reactiveRouter = new Router.Reactive(routeList, Meteor.Location.getPath);
var dispatcher = new Controller.Dispatcher(reactiveRouter.match, [
new InnoAccel.Account.Controller.Index(view),
new InnoAccel.Account.Controller.Project(view)
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment