Flask Templates — a practical guide to Flask Jinja templates with clear examples you can reuse in real projects.
Python Tutorial Series (68/95). Prefer one article? Read the complete Python tutorial.
Short description
Templates live in `templates/`. Use `render_template` and `{{ }}` / `{% %}` syntax.
Render template
from flask import render_template
@app.get('/about')
def about():
return render_template('about.html', title='About')