{% extends "layout.html" %} {% block title %}{{ title }}{% endblock %} {% block style %} {% parent %} {% endblock %} {% set exercise = 1 %} {% block content %} {# Cover #}

{{ title }}

By @{{ githubAuthor }}

{# Summary #}

Summary

{# Pages content #}
{% for section in pages["README.md"].content %} {% if section.type == "normal" %} {% autoescape false %}{{ section.content }}{% endautoescape %} {% elif section.type == "exercise" %}
Exercise #{{ exercise }}
{% autoescape false %}{{ section.content }}{% endautoescape %}
{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}
{% set exercise = exercise + 1 %}
{% endif %} {% endfor %}
{% for item in summary.chapters %} {% if item.articles.length > 0 %}

{{ item.title }}

{% for article in item.articles %} {% if pages[article.path] %}
{% for section in pages[article.path].content %} {% if section.type == "normal" %} {% autoescape false %}{{ section.content }}{% endautoescape %} {% elif section.type == "exercise" %}
Exercise #{{ exercise }}
{% autoescape false %}{{ section.content }}{% endautoescape %}
{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}
{% set exercise = exercise + 1 %}
{% endif %} {% endfor %}
{% endif %} {% endfor %}
{% endif %} {% endfor %} {# Exercise solutions #} {% if exercise > 1 %} {% set exercise = 1 %}

Exercise Solutions

{% for item in summary.chapters %} {% for article in item.articles %} {% if pages[article.path] %} {% for section in pages[article.path].content %} {% if section.type == "exercise" %}
Exercise #{{ exercise }}
{% autoescape false %}{{ section.content }}{% endautoescape %}
{% autoescape false %}{{ section.code.solution|code }}{% endautoescape %}
{% set exercise = exercise + 1 %}
{% endif %} {% endfor %} {% endif %} {% endfor %} {% endfor %}
{% endif %} {% endblock %} {% block javascript %}{% endblock %}