Is there a clean way to get the parent template of the current template? Nothing is officially documented in Meteor\'s API. I\'m talking about the Blaze.TemplateInstan
Blaze.TemplateInstan
If you don't want to extend Blaze.TemplateInstance you can access the parent instance like this:
Blaze.TemplateInstance
Template.exampleTemplate.onRendered(function () { const instance = this; const parentInstance = instance.view.parentView.templateInstance(); });
Only tested in Meteor 1.4.x