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