REFACTOR: Raw Handlebars ported to ES6

This commit is contained in:
Robin Ward
2016-06-30 17:10:08 -04:00
parent b8125b3512
commit 7ff5b228cd
8 changed files with 198 additions and 189 deletions

View File

@ -44,7 +44,7 @@ PLUGIN_API_JS
name = node["name"] || node["data-template-name"] || "broken"
precompiled =
if name =~ /\.raw$/
"Discourse.EmberCompatHandlebars.template(#{Barber::Precompiler.compile(node.inner_html)})"
"RawHandlebars.template(#{Barber::Precompiler.compile(node.inner_html)})"
else
"Ember.HTMLBars.template(#{Barber::Ember::Precompiler.compile(node.inner_html)})"
end