ember.js - Ember: render template as view property -


i have view i'd declare in hbs:

{{view app.componentview title="text field" optionstemplate="textfieldoptions" }} {{view app.componentview title="static label" optionstemplate="statiffieldoptions"}} 

then in view definition i'd following:

app.componentview = ember.view.extend({     templatename="blah",     attributebindings:["data-type", "draggable", "title", "rel", "data-trigger", "data-content"],     optionstemplate:null,     "data-content": function() {         var renderedoptionstemplate = em.xxx(this.get("optionstemplate"));           return renderedoptionstemplate;     }.property(), //snip }); 

what i'm looking should put in place intead of em.xxx call there. possible? can using either partial or template or whatever...


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -