Skip to content

Instantly share code, notes, and snippets.

@ccfiel
Created April 17, 2015 08:34
Show Gist options
  • Save ccfiel/96e7f44b04bc6424ee41 to your computer and use it in GitHub Desktop.
Save ccfiel/96e7f44b04bc6424ee41 to your computer and use it in GitHub Desktop.
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