Created
December 14, 2015 13:38
-
-
Save matthisk/8e6a2c4ecc9ab26592cd 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
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