mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
FIX: Correctly compile theme template overrides (#8946)
This commit is contained in:

committed by
GitHub

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() {
|
||||||
|
Reference in New Issue
Block a user