Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring Template Handling - Implementing Plugin-like Mechanism #453

Closed
3 tasks
KrzysztofPajak opened this issue Jan 1, 2024 · 0 comments · Fixed by #456
Closed
3 tasks

Refactoring Template Handling - Implementing Plugin-like Mechanism #453

KrzysztofPajak opened this issue Jan 1, 2024 · 0 comments · Fixed by #456
Labels
enhancement New feature or request

Comments

@KrzysztofPajak
Copy link
Member

Issue Description

Currently, our template handling system relies on a Themes directory, which limits flexibility and scalability. There is a need to revisit this approach and shift to a more modular and dynamic mechanism.

Proposed Changes

  • Removal of the Current Mechanism: Eliminate the entire Themes directory and its directly associated functions.
  • New Implementation Similar to Plugins: Propose the creation of a new template handling mechanism that works similarly to our existing plugin system. This means each template can be registered and installed as a separate plugin.
  • Addition of Theme.Minimal Plugin: As part of this change, introduce a new plugin Theme.Minimal, which will serve as an example of template implementation in the new system.

Benefits

  • Increased Modularity: This new approach allows for easier management of templates, similar to the handling of plugins.
  • Ease of Extension: The system will be more flexible in terms of adding new templates by developers.
  • Unified Architecture: Moving templates to the plugin system will bring more architectural coherence.

Considerations

  • What changes are required in the Project to support the new template system?
  • What are the best practices for creating templates in the new system?
  • How will the migration of current templates to the new system be handled?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant