feat: templates
This commit is contained in:
parent
7045e377fb
commit
8cddba74b5
8 changed files with 91 additions and 42 deletions
27
app.py
27
app.py
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue