From 9f64e5d9a0941706481ad520da592f7619cd4de1 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Tue, 12 Nov 2024 16:44:04 +0100 Subject: [PATCH] add: templates --- .gitignore | 1 + app.py | 13 +++++++++++++ templates/template.html | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100755 app.py create mode 100644 templates/template.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d17dae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv diff --git a/app.py b/app.py new file mode 100755 index 0000000..8676c4e --- /dev/null +++ b/app.py @@ -0,0 +1,13 @@ +from flask import Flask, render_template, redirect, url_for + +app = Flask(__name__) + + + +@app.route("/" or "/index.html") +def root(): + return render_template("template.html",page = "Page") + +@app.route("/imprint.html") +def imprint(): + return render_template("template.html",page = "Imprint") diff --git a/templates/template.html b/templates/template.html new file mode 100644 index 0000000..70b9747 --- /dev/null +++ b/templates/template.html @@ -0,0 +1,33 @@ + + + + Adrianux.net + + + + + +
+
{{ page }}
+ +
Homepage
+
+ Welcome to the Adrianux.net homepage, Adrian's website, feel free to check out what this VPS is currently serving. here or under Monitoring. +
+
+ + + + \ No newline at end of file