mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
DEV: Support colocation under /admin
namespace in themes/plugins (#19353)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user