jinja2 example
Example 1: jinja2 python
<title>{% block title %}{% endblock %}</title>
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
Example 2: jinja2
import flask
from flask import Flask , render_templates
app = Flask(__name__)
@app.route("/")
def hi():
name = "Your Name"
return render_templates(index.html , name = name)
# The html code below this code is mine