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

feat(engine): Refactor engine to support modular templates #254

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

linuxluigi
Copy link
Collaborator

This PR introduces changes to the template engine to allow modular templates. A new module interface has been added, making it possible to create template modules in a separate git repository or folder, or even a custom binary. This allows users to create custom combinations of modules or add their own to the existing ones.

In addition, a new View interface has been added to allow for custom implementations. An example implementation has been included using the https://github.com/charmbracelet/bubbletea library.

Please note that this is a draft, and more changes will be required before this can be merged. Feedback and suggestions are welcome!

Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
@brumhard
Copy link
Contributor

Nice one, I also drafted a new interface two days ago which is not fully implemented yet but I guess we have some nice approaches to discuss now 🕺🏻

Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
@linuxluigi
Copy link
Collaborator Author

Nice one, I also drafted a new interface two days ago which is not fully implemented yet but I guess we have some nice approaches to discuss now 🕺🏻

Awesome 🤩
Now we are getting there for the new version. Better to have some implementations instead only ideas 😁

Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
Signed-off-by: Steffen Exler <Steffen.Exler@pm.me>
@brumhard brumhard mentioned this pull request May 12, 2023
@brumhard brumhard marked this pull request as draft August 4, 2023 12:36
@MarvinJWendt MarvinJWendt changed the title [DRAFT] feat(engine): Refactor engine to support modular templates feat(engine): Refactor engine to support modular templates Aug 4, 2023
@johannes-riecken
Copy link
Contributor

Maybe it's a good idea to split the view interface into a separate PR to make this easier to review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants