I would like to render the block of a ContainerView within one of the child view's template, so if I have a view such:
MainView = Ember.ContainerView.extend({
childViews: ['child'],
child: Ember.View.extend({
template: Ember.Handlebars.compile('{{view.parentView.template}}')
}),
});
Ember.Handlebars.helper('main-view', MainView);
Assuming in template I have something like:
{{#main-view}}
SOME CONTENT.
{{/main-view}}
This wont work because view.parentview.template references a function that Ember set as the template, so, is there a way to make the childView's template refer to the parent's template?
Thanks!