This document provides an overview of Flask templates (Jinja2) including blocks, inheritance, variable scope, rendering templates, filters, forms with Flask-WTF, and the Flask-Admin extension. It demonstrates how to structure templates with common base templates, extend templates, and pass data between routes and templates. It also shows how to build forms, validate input, and customize the Flask-Admin interface.
2. Blocks ( templates/common/base.html )
Blocks name parts of your template, and can be re-used in child templates.
<html>
<title>{% block title %}My Website{% endblock %}</title>
<body>
{% block body %}
{% endblock %}
</body>
</html>