Last active
August 29, 2015 13:55
-
-
Save goje87/8787143 to your computer and use it in GitHub Desktop.
Trying to serve static content in iron-router
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
(function() { | |
'use strict'; | |
var routerCounfiguration = { | |
layoutTemplate: 'mainLayout', | |
notFoundTemplate: 'notFoundTemplate' | |
}; | |
Router.configure(routerCounfiguration); | |
Router.map(function() { | |
this.route('home', { | |
path: '/' | |
}); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The IIFE is not neccessary here because Meteor already wraps each file in an IIFE. I just write 'use strict' at the top of the file and it does what I expect.