longshotlabs / meteor-template-extension

A Meteor package: Replace already defined templates, inherit helpers and events from other templates
https://atmospherejs.com/aldeed/template-extension
MIT License
220 stars 20 forks source link

Syntax to use temple.parent()? #32

Closed davidystephenson closed 9 years ago

davidystephenson commented 9 years ago

I can't seem to figure out how the template.parent() method is meant to be used. Running template.parent() in a template helper isn't working. A simple example would be very helpful.

mitar commented 9 years ago

In the template helper you first have to get the template instance. So whole call would be Template.instance().parent().

davidystephenson commented 9 years ago

Thank you.

Sincerely,

David Y. Stephenson davidystephenson.com 910.874.8740

On Fri, Apr 24, 2015 at 6:50 PM, Mitar notifications@github.com wrote:

In the template helper you first have to get the template instance. So whole call would be Template.instance().parent().

— Reply to this email directly or view it on GitHub https://github.com/aldeed/meteor-template-extension/issues/32#issuecomment-96089382 .