Skip to content

Implement getTemplate() api for theming and plugins #13

@Oza94

Description

@Oza94

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)

  1. default template
  2. theme folder
  3. plugins folder
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions