mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use .hbr for raw template file extension (#8883)
This commit is contained in:
committed by
GitHub
parent
78a0ca53bf
commit
3e89774908
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user