Last active
August 29, 2015 14:01
-
-
Save kingluddite/bae46edbb47c9bd869a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router.configure({ | |
layoutTemplate: 'layout' | |
}); | |
Router.map(function() { | |
this.route('Home', {path: '/'}); | |
this.route('Projects', {path: '/projects'}); | |
this.route('About', {path: '/about'}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'