Created
May 18, 2012 23:25
-
-
Save possibilities/2728094 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 name='store'> | |
{{#each items}} | |
{{> item}} | |
{{/each}} | |
</template> | |
<template name='item'> | |
{{name}} {{qty store}} | |
</template> | |
Template.item.qty = function(store) { | |
console.log(this); // refers to item | |
console.log(store); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment