FIX: Correctly compile theme template overrides (#8946)

This commit is contained in:
Mark VanLandingham 2020-02-12 10:45:53 -08:00 committed by GitHub
parent 82c84c5141
commit c0ccfdb45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -187,9 +187,9 @@ class ThemeJavascriptCompiler
end end
def append_raw_template(name, hbs_template) def append_raw_template(name, hbs_template)
name = name.sub(/\.raw$/, '')
name = name.sub(/\.hbr$/, '.hbs')
name = name.inspect name = name.inspect
name.sub!(/\.raw$/, '')
name.sub!(/\.hbr$/, '.hbs')
compiled = RawTemplatePrecompiler.new(@theme_id).compile(hbs_template) compiled = RawTemplatePrecompiler.new(@theme_id).compile(hbs_template)
@content << <<~JS @content << <<~JS
(function() { (function() {