FEATURE: default string buffer will use a raw template

This commit is contained in:
Sam 2014-12-31 12:31:45 +11:00
parent 7707803201
commit 3f0a4b9e52

View File

@ -14,6 +14,13 @@ export default Ember.Mixin.create({
this.renderString(buffer);
},
renderString: function(buffer){
var template = Discourse.__container__.lookup('template:' + this.rawTemplate);
if (template) {
buffer.push(template(this));
}
},
_rerenderString: function() {
var buffer = [];
this.renderString(buffer);