discourse/app/assets/javascripts/discourse-plugins/colocated-template-compiler.js

15 lines
343 B
JavaScript

const ColocatedTemplateProcessor = require("ember-cli-htmlbars/lib/colocated-broccoli-plugin");
module.exports = class DiscoursePluginColocatedTemplateProcessor extends (
ColocatedTemplateProcessor
) {
constructor(tree, rootName) {
super(tree);
this.rootName = rootName;
}
detectRootName() {
return this.rootName;
}
};