Files
FlaskBlog/templates/user.html

38 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{name | capitalize}}'s page</title>
</head>
<body>
{% extends "base.html" %}
{% block content %}
<h1>Hello {{name | upper}}!!</h1> <!--This makes the whole thing capitalised-->
<h1>Hello {{name | capitalize}}!!</h1> <!--This makes the first char capitalised-->
<h1>Hello {{name | lower}}!!</h1>
<h1>Hello {{name | title}}!!</h1>
<p>{{ stuff }}</p>
<p>{{ stuff | safe }}</p> <!--This will allow html codes to be loaded-->
<p>{{ stuff | striptags }}</p> <!--This will remove html tags from the string-->
{% for item in liste %}
{% if item == 3 %}
<p>Thiiiiiiiiis is number THREEEEEEEEE!!!!</p>
{% else %}
<p style="font-size: 5ch; font-style: oblique; color: chocolate;">{{ item }}</p>
{% endif %}
{% endfor %}
<h1>Sahe thing with some math!</h1>
{% for item in liste %}
<p style="font-size: 5ch; font-style: oblique; color: chocolate;">{{ item **25 }}</p>
{% endfor %}
<p>The last element of my list is: {{liste[4]}}</p>
{% endblock %}
</body>
</html>