-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Milestone
Description
Now it is not possible for a theme (or a plugin although this is not implemented yet) to override a jade template. We should offer this feature by exposing a getTemplate('path/to/template') method and using this method rather than standard include path/to/template.
On application startup, we will lookup for templates in 4 locations (higher number means higher priority)
- default template
- theme folder
- plugins folder
- site templates (user defined templates)
If two plugins override the same template, then the last one who overrides the template has won.
Therefore, templates should be as modular as possible. The recommendation if there is a conflict between themes/plugins (e.g. and theme and a plugin booth try to change the editor template) is to create a proper template in site templates.