DEV: Support colocation under /admin namespace in themes/plugins (#19353)

This commit is contained in:
David Taylor
2022-12-07 14:24:03 +00:00
committed by GitHub
parent f2d0832618
commit 566793208e
4 changed files with 27 additions and 7 deletions

View File

@ -176,7 +176,15 @@ module.exports = {
tree = RawHandlebarsCompiler(tree);
tree = new DiscoursePluginColocatedTemplateProcessor(tree, pluginName);
const colocateBase = `discourse/plugins/${pluginName}`;
tree = new DiscoursePluginColocatedTemplateProcessor(
tree,
`${colocateBase}/discourse`
);
tree = new DiscoursePluginColocatedTemplateProcessor(
tree,
`${colocateBase}/admin`
);
tree = this.compileTemplates(tree);
tree = this.processedAddonJsFiles(tree);