FIX: Load raw hbs templates correctly from theme javascripts folder

This commit is contained in:
David Taylor
2019-09-13 18:01:16 +01:00
parent b0211772cb
commit 98719bee10
2 changed files with 3 additions and 3 deletions

View File

@ -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