aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/app.py b/app.py
index 5978281..7cc97d9 100644
--- a/app.py
+++ b/app.py
@@ -83,7 +83,7 @@ def get_thought():
flask.abort(404)
return
return flask.render_template_string(
- parsed,
+ '{% extends "template.html" %}\n{% block content %}\n' + parsed + '\n{% endblock %}',
**get_template_items(title, db),
thought = True,
dt = "published: " + str(dt),
@@ -145,7 +145,5 @@ def preview():
else:
flask.abort(404)
-
-
if __name__ == "__main__":
app.run(host = "0.0.0.0", debug = True) \ No newline at end of file