Skip to content

Instantly share code, notes, and snippets.

@digilord
Created October 15, 2014 21:26
Show Gist options
  • Save digilord/25f286bef506127a7309 to your computer and use it in GitHub Desktop.
Save digilord/25f286bef506127a7309 to your computer and use it in GitHub Desktop.
Sample Router
Router.route('home', {
path: '/',
data: {title: 'My Title'}
});
// when you navigate to "/one" automatically render the template named "One".
Router.route('/one');
// when you navigate to "/two" automatically render the template named "Two".
Router.route('/two');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment