From c69a600aa1f0a92af0fa12374aff124c6b06ed62 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 20 Nov 2023 10:44:26 +1100 Subject: [PATCH] feat: Add footer to render for template testing --- sites/website.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sites/website.py b/sites/website.py index d99cbf3..8d5104d 100644 --- a/sites/website.py +++ b/sites/website.py @@ -11,6 +11,9 @@ FOOTER="" if os.path.exists("parts/footer.html"): with open("parts/footer.html") as f: FOOTER = f.read() +elif os.path.exists("sites/parts/footer.html"): + with open("sites/parts/footer.html") as f: + FOOTER = f.read() def render(data,db_object): if data == False: