FIX: Correctly compile theme template overrides (#8946)
This commit is contained in:
parent
82c84c5141
commit
c0ccfdb45e
|
@ -187,9 +187,9 @@ class ThemeJavascriptCompiler
|
|||
end
|
||||
|
||||
def 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() {
|
||||
|
|
Loading…
Reference in New Issue