1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-19 21:01:31 +00:00

Add support for custom_templates folder to override Jinja2 templates

This commit is contained in:
FreddleSpl0it
2025-05-22 13:42:17 +02:00
parent 3eb17a5f78
commit 13b4f86d29
16 changed files with 32 additions and 8 deletions

View File

@@ -30,7 +30,10 @@ class Bootstrap(BootstrapBase):
# Setup Jinja2 Environment and load vars
self.env = Environment(
loader=FileSystemLoader('/etc/dovecot/config_templates'),
loader=FileSystemLoader([
'/etc/dovecot/custom_templates',
'/etc/dovecot/config_templates'
]),
keep_trailing_newline=True,
lstrip_blocks=True,
trim_blocks=True