From 3f0a4b9e5229e3763aa19609fd3770d37de8cfb4 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 31 Dec 2014 12:31:45 +1100 Subject: [PATCH] FEATURE: default string buffer will use a raw template --- .../javascripts/discourse/mixins/string-buffer.js.es6 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/discourse/mixins/string-buffer.js.es6 b/app/assets/javascripts/discourse/mixins/string-buffer.js.es6 index 070dfd12701..a11f7419ac6 100644 --- a/app/assets/javascripts/discourse/mixins/string-buffer.js.es6 +++ b/app/assets/javascripts/discourse/mixins/string-buffer.js.es6 @@ -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);