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

Mechanism to Override Templates #26

Closed
Shinmera opened this issue Jun 4, 2018 · 1 comment
Closed

Mechanism to Override Templates #26

Shinmera opened this issue Jun 4, 2018 · 1 comment

Comments

@Shinmera
Copy link
Member

Shinmera commented Jun 4, 2018

In order to make modules re-usable by administrators, templates and such need to be customisable without directly modifying the source. I'm not sure yet how this might be facilitated, but it's an important step to keep things properly encapsulated and easily extensible.

@Shinmera
Copy link
Member Author

Using the change from #28, a new environment directory for template overrides could be used. The template-file function would then first check for the presence of an equivalent file in that directory, and fall back to the source directory otherwise. This would still require modules to be recompiled in case a template is added or changed, but that's a small price to pay. Will definitely need to be documented though as I imagine it would be confusing if the template overrides don't take place immediately.

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

No branches or pull requests

1 participant