aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-03-05 17:57:21 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-03-05 17:57:21 +0000
commit287034916bef5878a5565aec4141216fa6f133e6 (patch)
treec607cf3ced9819fe356fc13aa8757fb0bbb1a9d8 /app.py
parent64f4004d605cd0e576c3fc3fec95a7f118b4f20e (diff)
downloadeda.gay-287034916bef5878a5565aec4141216fa6f133e6.tar.gz
eda.gay-287034916bef5878a5565aec4141216fa6f133e6.zip
drastically improved parser argument parser
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