mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Move select kit to an addon (#9797)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user