mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FEATURE: default string buffer will use a raw template
This commit is contained in:
parent
7707803201
commit
3f0a4b9e52
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue