Skip to content

Instantly share code, notes, and snippets.

@goje87
Last active August 29, 2015 13:55
Show Gist options
  • Save goje87/8787143 to your computer and use it in GitHub Desktop.
Save goje87/8787143 to your computer and use it in GitHub Desktop.
Trying to serve static content in iron-router
(function() {
'use strict';
var routerCounfiguration = {
layoutTemplate: 'mainLayout',
notFoundTemplate: 'notFoundTemplate'
};
Router.configure(routerCounfiguration);
Router.map(function() {
this.route('home', {
path: '/'
});
});
})();
@nalply
Copy link

nalply commented Feb 20, 2014

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.

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