Created
April 17, 2015 08:34
-
-
Save ccfiel/96e7f44b04bc6424ee41 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.route '/', | |
name: 'home' | |
waitOn: -> | |
Meteor.subscribe 'Stocks' | |
action: -> | |
@render 'home', data: products: Products.find {} | |
SEO.set title: 'Home - ' + Meteor.App.NAME | |
return | |
onAfterAction: -> | |
routerInstance = this | |
Meteor.call 'Users.store_user_id', (error, result) -> | |
console.log 'i was fired' | |
routerInstance.layoutTemplate = result | |
return | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment