mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:29:17 -06:00
FEATURE: default string buffer will use a raw template
This commit is contained in:
parent
7707803201
commit
3f0a4b9e52
@ -14,6 +14,13 @@ export default Ember.Mixin.create({
|
|||||||
this.renderString(buffer);
|
this.renderString(buffer);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
renderString: function(buffer){
|
||||||
|
var template = Discourse.__container__.lookup('template:' + this.rawTemplate);
|
||||||
|
if (template) {
|
||||||
|
buffer.push(template(this));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
_rerenderString: function() {
|
_rerenderString: function() {
|
||||||
var buffer = [];
|
var buffer = [];
|
||||||
this.renderString(buffer);
|
this.renderString(buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user