Skip to content

Instantly share code, notes, and snippets.

@possibilities
Created May 18, 2012 23:25
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 possibilities/2728094 to your computer and use it in GitHub Desktop.
Save possibilities/2728094 to your computer and use it in GitHub Desktop.
<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