DEV: Use .hbr for raw template file extension (#8883)

This commit is contained in:
Mark VanLandingham
2020-02-11 13:38:12 -06:00
committed by GitHub
parent 78a0ca53bf
commit 3e89774908
35 changed files with 26 additions and 7 deletions

View File

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