2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Correctly compile theme template overrides (#8946)

This commit is contained in:
Mark VanLandingham 2020-02-12 10:45:53 -08:00 committed by GitHub
parent 82c84c5141
commit c0ccfdb45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {