ember.js - Rendering ContainerView's template within a child view -


i render block of containerview within 1 of child view's template, if have 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 have like:

{{#main-view}}     content. {{/main-view}} 

this wont work because view.parentview.template references function ember set template, so, there way make childview's template refer parent's template?

thanks!

containerview doesn't have neither template nor layout :/. has properties set tagname classnames, etc , render childviews(buffer) inside it.

a while ago, pointing similar issue: https://github.com/emberjs/ember.js/issues/3334

let's hope add support wrapping(layout) containerview, way solve problem too!


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -