1<title>{% block title %}{% endblock %}</title>
2<ul>
3{% for user in users %}
4 <li><a href="{{ user.url }}">{{ user.username }}</a></li>
5{% endfor %}
6</ul>
7
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <title>Document</title>
8</head>
9<body>
10 <div class = "container">
11 <h1>
12 Hi my name is {{ name }}
13 </h1>
14 </div>
15</body>
16</html>
1import flask
2from flask import Flask , render_templates
3
4app = Flask(__name__)
5@app.route("/")
6def hi():
7 name = "Your Name"
8 return render_templates(index.html , name = name)
9
10# The html code below this code is mine