flask jinja != code example

Example 1: how do you render a template in flask

return render_template("home.html")

Example 2: jinja2 python

<title>{% block title %}{% endblock %}</title>
<ul>
{% for user in users %}
  <li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>

Example 3: templates python

from string import Template
poem = Template('$x are red and $y are blue')

print(poem.substitute(x='roses', y='violets'))
#>>>roses are red and violets are blue