add: templates
This commit is contained in:
commit
9f64e5d9a0
3 changed files with 47 additions and 0 deletions
13
app.py
Executable file
13
app.py
Executable file
|
@ -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")
|
Loading…
Add table
Add a link
Reference in a new issue