feat: templates

This commit is contained in:
ahoemann 2024-11-15 08:26:13 +01:00
parent 7045e377fb
commit 8cddba74b5
8 changed files with 91 additions and 42 deletions

27
app.py
View file

@ -1,13 +1,22 @@
from flask import Flask, render_template, redirect, url_for
#!/usr/bin/env python3
from flask import Flask, render_template, redirect, url_for
import os
services = ("httpd", "nsd", "pf", "ntp")
app = Flask(__name__)
@app.route("/" or "/index.html")
navigation = {"Imprint":"imprint"}
@app.route("/imprint")
def root():
return render_template("template.html",page = "Page")
return render_template("imprint.html")
@app.route("/imprint.html")
def imprint():
return render_template("template.html",page = "Imprint")
@app.route("/about")
def about():
return render_template("about.html")
@app.route("/")
def homepage():
return render_template("homepage.html")
if __name__ == "__main__":
app.run(debug=True)