From 287034916bef5878a5565aec4141216fa6f133e6 Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 5 Mar 2021 17:57:21 +0000 Subject: drastically improved parser argument parser --- app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app.py') 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 -- cgit v1.2.3