DEV: Move select kit to an addon (#9797)

This commit is contained in:
Robin Ward
2020-05-15 16:07:35 -04:00
committed by GitHub
parent 7f07c513a7
commit db8e872bda
120 changed files with 10670 additions and 3 deletions

View File

@@ -248,7 +248,11 @@ module Discourse
config.exceptions_app = Middleware::DiscoursePublicExceptions.new(Rails.public_path)
# Our templates shouldn't start with 'discourse/app/templates'
config.handlebars.templates_root = 'discourse/app/templates'
config.handlebars.templates_root = {
'discourse/app/templates' => '',
'select-kit/app/templates' => 'select-kit/templates/'
}
config.handlebars.raw_template_namespace = "__DISCOURSE_RAW_TEMPLATES"
Sprockets.register_mime_type 'text/x-handlebars', extensions: ['.hbr']
Sprockets.register_transformer 'text/x-handlebars', 'application/javascript', Ember::Handlebars::Template