feat: update offlineshop extension

This commit is contained in:
Stefan Stammberger
2021-09-16 19:42:05 +02:00
parent 24bb2e0dc9
commit e3c7ca0726
10 changed files with 138 additions and 101 deletions
+2 -2
View File
@@ -149,9 +149,9 @@ def url_for(
url = f"{base}{endpoint}{url_params}"
return url
def template_renderer() -> Jinja2Templates:
def template_renderer(additional_folders: List = []) -> Jinja2Templates:
t = Jinja2Templates(
loader=jinja2.FileSystemLoader(["lnbits/templates", "lnbits/core/templates"]),
loader=jinja2.FileSystemLoader(["lnbits/templates", "lnbits/core/templates", *additional_folders]),
)
t.env.globals["SITE_TITLE"] = settings.LNBITS_SITE_TITLE
t.env.globals["SITE_TAGLINE"] = settings.LNBITS_SITE_TAGLINE