mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: Load raw hbs templates correctly from theme javascripts folder
This commit is contained in:
@ -138,7 +138,7 @@ class ThemeField < ActiveRecord::Base
|
||||
when "hbs"
|
||||
js_compiler.append_ember_template(filename.sub("discourse/templates/", ""), content)
|
||||
when "raw.hbs"
|
||||
js_compiler.append_raw_template(filename, content)
|
||||
js_compiler.append_raw_template(filename.sub("discourse/templates/", ""), content)
|
||||
else
|
||||
raise ThemeJavascriptCompiler::CompileError.new(I18n.t("themes.compile_error.unrecognized_extension", extension: extension))
|
||||
end
|
||||
|
Reference in New Issue
Block a user