{% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} {% import 'components/common.html' as component with context %} {{ script.include('common') }} {# common.js has many useful functions, so we import it here #} {% if norobots %} {% endif %} {% block title %}{{C.APP_NAME}}{% endblock %} {% if css_content is defined %} {% else %} {% for css_file in css_files %} {% endfor %} {% endif %} {% if background_image is defined %} {# Q&D workaround to implement dynamic background-image it should be replaced by a better mechanism in the future, avoid using it #} {% endif %} {{ script.generate_scripts() }} {% if main_menu is defined %} {% block main_menu %} {{ component.menu(main_menu, class="main_menu") }} {% endblock main_menu %} {% endif %}
{% if confirm %} {# confirmation message used when post data has been handled correctly #} {% block confirm %}
{% block confirm_message %} {% trans %}Your data has been sent correctly.{% endtrans %} {% endblock confirm_message %}
{% endblock confirm %} {% endif %}
{% block category_menu scoped %} {% if category_menu is defined %} {{ component.menu(category_menu, class="category_menu") }} {% endif %} {% endblock category_menu %} {% block body %} {% endblock body %}