diff options
| author | Yuval Adam <_@yuv.al> | 2024-05-17 12:40:13 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-05-18 13:12:23 +0200 |
| commit | a3151bdde0f0ca7ad71e9fcfe441311d39a0a622 (patch) | |
| tree | be7baad01cb575a73445175ae30b9c791056c90c | |
| parent | 73f297be28898f4825c43ad362ccf141ddb568ad (diff) | |
Fix jinja template loading from filesystem
| -rw-r--r-- | cli/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/build.py b/cli/build.py index 38874fe..f8fef5d 100644 --- a/cli/build.py +++ b/cli/build.py @@ -1,6 +1,6 @@ import click -from jinja2 import Environment, PackageLoader, select_autoescape +from jinja2 import Environment, FileSystemLoader, select_autoescape from os import listdir, mkdir from pathlib import Path from shutil import copyfile @@ -62,7 +62,7 @@ def build(verbose): # render templates env = Environment( - loader=PackageLoader("manage"), + loader=FileSystemLoader("templates"), autoescape=select_autoescape(), ) env.filters["render_link"] = render_link |
