{# Title Block : wit Minibase as defauls value : will be overwritten if anothe page has the same title block #} {% block title %}Minibase{% endblock %} {# Here You can see how we use variables in HTML code #} {# We can also include othe html files #} {% include 'navbar.html' %}
{# This part will catch anny messages that we want to FLASH when something has been updated #} {# Gets the messages with their respective categories #} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {# If there are messages present #} {% for category, message in messages %} {# Get the message and his category #}
{{ message }} {# Print it #}
{% endfor %} {% endif %} {% endwith %} {% block content %} {# Every extra template will be placed here for examplem login.htlm and so on #} {% endblock %}
{% block scripts %}{% endblock %} {# These are Jinja comments and will not be shown if someone was to look at the source code of this page contrary to the HTML comments#}