This commit is contained in:
Bottersnike 2021-12-28 20:55:08 +00:00
parent 2da6e2b056
commit fb99158425
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ for base, folders, files in os.walk(TEMPLATES + "/" + PAGES_BASE):
if name.endswith(".html"):
def handler(base, name):
def handler():
return render_template(os.path.join(base, name).strip("/").replace("\\", "/"))
return render_template(os.path.join(base, name).strip("/").replace("\\", "/"), ROOT=os.environ.get("EA_ROOT"))
return handler
local_base = base.replace("\\", "/").strip(".").strip("/")