Skip to content

Instantly share code, notes, and snippets.

@matthisk
Created December 14, 2015 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthisk/8e6a2c4ecc9ab26592cd to your computer and use it in GitHub Desktop.
Save matthisk/8e6a2c4ecc9ab26592cd to your computer and use it in GitHub Desktop.
Template.cook.helpers({
firstName: function() {
return this.userName.split(' ')[0];
},
recipeTitle: function() {
return RecipesData[this.recipeName].title;
},
path: function() {
return Router.path('recipe', { name: this.recipeName },
{ query: { activityId: this._id } })
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment