{% extends "layout.html" %} {% block title %}{{ title }}{% endblock %} {% block style %} {% endblock %} {% macro articleContent(content) %} {% for section in content %} {% if section.type == "normal" %} {% autoescape false %}{{ section.content }}{% endautoescape %} {% elif section.type == "exercise" %}
{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}
{% set exercise = exercise + 1 %}
{% autoescape false %}{{ section.code.solution|code }}{% endautoescape %}
{% set exercise = exercise + 1 %}