Skip to content

Instantly share code, notes, and snippets.

@kingluddite
Last active August 29, 2015 14:01
Show Gist options
  • Save kingluddite/bae46edbb47c9bd869a8 to your computer and use it in GitHub Desktop.
Save kingluddite/bae46edbb47c9bd869a8 to your computer and use it in GitHub Desktop.
Router.configure({
layoutTemplate: 'layout'
});
Router.map(function() {
this.route('Home', {path: '/'});
this.route('Projects', {path: '/projects'});
this.route('About', {path: '/about'});
});
@kingluddite
Copy link
Author

This is how you get Meteor to make links go to other 'pages' in your site.
CamelCase is used to name templates.
The path is the URL path, example, http://localhost/about takes you to the about 'page'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment