the text field for writing and posting comments
These files have to be stored in templates, the default (sub)directory for templates when
using Flask.
Example 14-3 shows the template containing the basic layout and some meta-information
(like the site title). This is the template all other templates inherit from.
Example 14-3. Template for basic layout of Tradechat application
<!doctype html>
href=“{{ url_for(‘static’, filename=‘style.css’) }}”>
Tradechat
{% for message in get_flashed_messages() %}
{{ message }}
{% endfor %}
{% block body %}{% endblock %}