Remove support for theme settings in raw handlebar templates

This commit is contained in:
Vinoth Kannan 2018-04-11 18:21:04 +05:30
parent f0803e9611
commit 19e8f9af13
2 changed files with 1 additions and 5 deletions

View File

@ -18,7 +18,3 @@ function inject(context, key, value) {
registerHelper('theme-setting-injector', function(arr, hash) {
inject(hash.context, hash.key, hash.value);
});
Handlebars.registerHelper('theme-setting-injector', function(hash) {
inject(hash.data.root, hash.hash.key, hash.hash.value);
});

View File

@ -69,7 +69,7 @@ PLUGIN_API_JS
is_raw = name =~ /\.raw$/
if is_raw
template = "requirejs('discourse-common/lib/raw-handlebars').template(#{Barber::Precompiler.compile(hbs_template)})"
template = "requirejs('discourse-common/lib/raw-handlebars').template(#{Barber::Precompiler.compile(node.inner_html)})"
node.replace <<COMPILED
<script>
(function() {