jinja basics

This commit is contained in:
2024-10-10 10:08:42 +02:00
parent ab1187f3c4
commit 65a0b3cbab
4 changed files with 40 additions and 2 deletions

View File

@ -19,4 +19,8 @@ def index():
@app.route('/user/<name>')
def user(name):
return "<h1>Hello {}!!!</h1>".format(name)
stuff = "This is some <strong> bold </strong> text"
liste = [1,2,3,4,5]
return render_template('user.html', name=name,
stuff=stuff,
liste=liste)