Commit 217226ea authored by berumuron's avatar berumuron
Browse files

fix: Fix page rendering when template is undefined

parent f39186fa
......@@ -130,6 +130,7 @@ class Page:
# And we initialize a template for the page
page_template_filepath = os.path.join("templates", "page.html")
self.template = None
if os.path.exists(page_template_filepath):
self.template = boopsy.Template(page_template_filepath)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment