view default/base/base.html @ 9:7a1626e78d53

base: an embedded variable is set when base is used, this way we can have include templates without including the whole page with base
author Goffi <goffi@goffi.org>
date Thu, 27 Apr 2017 01:05:16 +0200
parents b13a26d55c64
children 422c54e0204a
line wrap: on
line source

{% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>{% block title %}{{C.APP_NAME}}{% endblock %}</title>
    {% if css_content is defined %}
        <style type="text/css">
            {{css_content}}
        </style>
    {% else %}
        {% for css_file in css_files %}
            <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'>
        {% endfor %}
    {% endif %}
</head>
<body>
    <div id="body">
    {% block body %}
    {% endblock body %}
    </div>
    <footer>{% block footer %}Powered by {{C.APP_NAME}}{% endblock %}</footer>
</body>
</html>