Revert "Remove RawDivView and use regular handlebars"

This reverts commit e7f349ff0f.
This commit is contained in:
Robin Ward 2013-07-30 11:20:11 -04:00
parent df3a4c05cd
commit fc25da09e3
2 changed files with 12 additions and 1 deletions

View File

@ -47,7 +47,7 @@
</div> </div>
</div> </div>
{{/unless}} {{/unless}}
<div class='cooked'>{{{cooked}}}</div> {{view Discourse.RawDivView class="cooked" contentBinding="cooked"}}
{{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}} {{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
</div> </div>
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}} {{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}}

View File

@ -0,0 +1,11 @@
// used to render a div with unescaped contents
Discourse.RawDivView = Ember.View.extend({
shouldRerender: Discourse.View.renderIfChanged('content'),
render: function(buffer) {
buffer.push(this.get('content'));
}
});