2022-10-17 04:38:20 -04:00
|
|
|
const ColocatedTemplateProcessor = require("ember-cli-htmlbars/lib/colocated-broccoli-plugin");
|
|
|
|
|
|
|
|
module.exports = class DiscoursePluginColocatedTemplateProcessor extends (
|
|
|
|
ColocatedTemplateProcessor
|
|
|
|
) {
|
2022-10-21 15:20:46 -04:00
|
|
|
constructor(tree, discoursePluginName) {
|
|
|
|
super(tree);
|
|
|
|
this.discoursePluginName = discoursePluginName;
|
|
|
|
}
|
2022-10-17 04:38:20 -04:00
|
|
|
|
2022-10-21 15:20:46 -04:00
|
|
|
detectRootName() {
|
|
|
|
return `discourse/plugins/${this.discoursePluginName}/discourse`;
|
2022-10-17 04:38:20 -04:00
|
|
|
}
|
|
|
|
};
|