mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 22:56:02 +08:00
Support for Raw Handlebars and helpers in Ember 1.13
This commit is contained in:
@ -132,6 +132,12 @@ export function buildResolver(baseName) {
|
||||
},
|
||||
|
||||
resolveTemplate(parsedName) {
|
||||
let fullName = parsedName.fullNameWithoutType;
|
||||
if (fullName.indexOf('.raw') !== -1) {
|
||||
return Ember.TEMPLATES[fullName] ||
|
||||
Ember.TEMPLATES[fullName.replace(/\.raw$/, '')];
|
||||
}
|
||||
|
||||
return this.findPluginMobileTemplate(parsedName) ||
|
||||
this.findPluginTemplate(parsedName) ||
|
||||
this.findMobileTemplate(parsedName) ||
|
||||
|
Reference in New Issue
Block a user