A platform for community discussion. Free, open, simple.
FIX: Correctly compile theme template overrides (#8946)
Mark VanLandinghamc0ccfdb45e4b
diff --git a/lib/theme_javascript_compiler.rb b/lib/theme_javascript_compiler.rbindex 23650434176..d7ea11362fd 100644--- a/lib/theme_javascript_compiler.rb+++ b/lib/theme_javascript_compiler.rb@@ -187,9 +187,9 @@ class ThemeJavascriptCompilerenddef append_raw_template(name, hbs_template)+ name = name.sub(/\.raw$/, '')+ name = name.sub(/\.hbr$/, '.hbs')name = name.inspect- name.sub!(/\.raw$/, '')- name.sub!(/\.hbr$/, '.hbs')compiled = RawTemplatePrecompiler.new(@theme_id).compile(hbs_template)@content << <<~JS(function() {