mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove support for theme settings in raw handlebar templates
This commit is contained in:
@@ -18,7 +18,3 @@ function inject(context, key, value) {
|
|||||||
registerHelper('theme-setting-injector', function(arr, hash) {
|
registerHelper('theme-setting-injector', function(arr, hash) {
|
||||||
inject(hash.context, hash.key, hash.value);
|
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$/
|
is_raw = name =~ /\.raw$/
|
||||||
if is_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
|
node.replace <<COMPILED
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user