From d4be063d00d2e7611a0402a68a84a39e3d0fe413 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Mon, 3 Jul 2023 22:41:49 +1000 Subject: [PATCH] some structure --- app.py | 4 ++++ templates/main-page.html | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 templates/main-page.html diff --git a/app.py b/app.py index 6cdd183..b3118b0 100644 --- a/app.py +++ b/app.py @@ -20,6 +20,10 @@ js.build() @app.route("/") def homepage(): + return render_template("main-page.html") + +@app.route("/todo") +def page_todo(): return render_template("page1.html") diff --git a/templates/main-page.html b/templates/main-page.html new file mode 100644 index 0000000..009f67b --- /dev/null +++ b/templates/main-page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} + +
+ sup +
+ +{% endblock content %} \ No newline at end of file