Remove support for theme settings in raw handlebar templates
This commit is contained in:
parent
f0803e9611
commit
19e8f9af13
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue