{% for page_num in range(pages|length) %} {% set page = pages[page_num] %}
{% if page_num == 0 %}

{{ page.title or (icon ~ ' ' ~ topic) }}

Week {{ week }} • {{ day }} • {{ subtitle }}

{% endif %} {% for section in page.sections %}
{% if section.type == 'reading' %}

{{ section.icon or '📖' }} {{ section.title or 'Reading Time' }}

{% for para in section.paragraphs %}

{{ para }}

{% endfor %}
{% elif section.type == 'questions' %}

{{ section.icon or '✏️' }} {{ section.title or 'Reading Questions' }}

{% for q in section.questions %}

{{ loop.index }}. {{ q.text }}

{% if q.lines == 'triple' %}
{% else %}
{% endif %} {% endfor %} {% elif section.type == 'vocab_grid' %}

{{ section.icon or '📝' }} {{ section.title or 'Vocabulary' }}

{{ section.instruction or 'Write what each word means in your own words.' }}

{% for word in section.words %}
{{ word }}
{% endfor %}
{% elif section.type == 'sort_table' %}

{{ section.icon or '📊' }} {{ section.title }}

{{ section.instruction or '' }}

{% for row in section.rows %} {% endfor %}
{{ section.header[0] }}{{ section.header[1] }}
{{ row[0] }}{{ row[1] or '' }}
{% elif section.type == 'true_false' %}

{{ section.icon or '✏️' }} {{ section.title or 'True or False' }}

{{ section.instruction or 'Write T for true or F for false in each circle.' }}

{% for item in val(section, 'items', []) %}
{{ item }}
{% endfor %} {% elif section.type == 'draw_grid' %}

{{ section.icon or '🎨' }} {{ section.title }}

{{ section.instruction or '' }}

{% for _ in range(section.boxes|default(3)) %}
{% endfor %}
{% elif section.type == 'fill_blank' %}

{{ section.icon or '✏️' }} {{ section.title or 'Fill in the Blanks' }}

{% if section.wordbank %}
{% for w in section.wordbank %}{{ w }}{% endfor %}
{% endif %} {% for item in val(section, 'items', []) %}

{{ loop.index }}. {{ item | blanks }}

{% endfor %} {% elif section.type == 'activity' %}

{{ section.icon or '🔍' }} {{ section.title }}

{% for para in section.content %}

{{ para }}

{% endfor %}
{% if section.table %} {% for row in section.table.rows %} {% endfor %}
{{ section.table.header[0] }}{{ section.table.header[1] }}
{{ row[0] }}{{ row[1] or '' }}
{% endif %} {% elif section.type == 'think' %}

{{ section.icon or '🧠' }} {{ section.title or 'Think About It' }}

{% for q in section.questions %}

{{ loop.index }}. {{ q.text }}

{% if q.lines == 'triple' %}
{% else %}
{% endif %} {% endfor %} {% elif section.type == 'review_table' %}

{{ section.icon or '📊' }} {{ section.title or 'Review' }}

{% for row in section.rows %} {% endfor %}
{{ section.header[0] }}{{ section.header[1] }}
{{ row[0] }}{{ row[1] or '' }}
{% else %}

{{ section.icon or '' }} {{ section.title }}

{{ section.content or '' }}

{% endif %}
{% endfor %}
{% endfor %}