Base Template
<!doctype html> <html> <head> <meta charset="utf-8"> <title>{% block title %}{% endblock %}</title> <link rel="stylesheet" href="/static/counter4.css" type="text/css"> </head> <body> <h1>{{ self.title() }}</h1> {# https://stackoverflow.com/questions/1242239/multiple-blocks-of-same-name-in-jinja2 #} <div>A Flask session. Your count is {{count}}</div> {% block content %}{% endblock %} {% if err is defined %}<div id="err" class="err">{{err}}</div>{% endif %} </body> </html>