diff --git a/__pycache__/begin.cpython-312.pyc b/__pycache__/begin.cpython-312.pyc index 220c50f..195e063 100644 Binary files a/__pycache__/begin.cpython-312.pyc and b/__pycache__/begin.cpython-312.pyc differ diff --git a/begin.py b/begin.py index 14c017d..a6bbf7c 100644 --- a/begin.py +++ b/begin.py @@ -19,4 +19,8 @@ def index(): @app.route('/user/') def user(name): - return "

Hello {}!!!

".format(name) \ No newline at end of file + stuff = "This is some bold text" + liste = [1,2,3,4,5] + return render_template('user.html', name=name, + stuff=stuff, + liste=liste) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index d514b59..c4d0709 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ - Document + Main

Hello World

diff --git a/templates/user.html b/templates/user.html new file mode 100644 index 0000000..d6d55f1 --- /dev/null +++ b/templates/user.html @@ -0,0 +1,34 @@ + + + + + + {{name | capitalize}}'s page + + +

Hello {{name | upper}}!!

+

Hello {{name | capitalize}}!!

+

Hello {{name | lower}}!!

+

Hello {{name | title}}!!

+

{{ stuff }}

+

{{ stuff | safe }}

+

{{ stuff | striptags }}

+ + {% for item in liste %} + {% if item == 3 %} +

Thiiiiiiiiis is number THREEEEEEEEE!!!!

+ {% else %} +

{{ item }}

+ {% endif %} + {% endfor %} + +

Sahe thing with some math!

+ + {% for item in liste %} +

{{ item **25 }}

+ {% endfor %} + +

The last element of my list is: {{liste[4]}}

+ + + \ No newline at end of file