Skip to content

Instantly share code, notes, and snippets.

@pctj101
Created May 18, 2012 23:40
Show Gist options
  • Save pctj101/2728171 to your computer and use it in GitHub Desktop.
Save pctj101/2728171 to your computer and use it in GitHub Desktop.
Nested meteor templates w/ parent reference
<template name='reservation'>
{{#each venues}}
{{> venue}}
{{/each}}
</template>
<template name='venue'>
<div class='venue'>
{{bambam reservation}}
</div>
</template>
Template.venue.bambam = function(reservation) {
console.log("bambam.this", this); // works like a charm
console.log("bambam", reservation); // prints undefined
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment