{% for row in range(dimensions) %} {% for column in range(dimensions) %} {% if grid[row][column] != empty %} {# There is a word in this cell #}
{% if (row, column) in starting_word_positions %} {# Start of a word #}
{{ starting_word_matrix[row][column] }}
{% endif %}
{% else %} {# This cell will have no characters #}
{% endif %} {% endfor %} {% endfor %}
{# Compound button #}
{# Toggle buttons #}
{# Reveal, check, and clear dropdowns and their respective buttons #}
{# Reveal buttons #} {# Check buttons #} {# Clear buttons #}
{# Word definitions #}

{{ _('Across') }}

{# Column one for across definitions #}
    {% for dict_ in definitions_a %} {% for num_label, definition in dict_.items() %}
  • {{ num_label }} {{ definition[1] }}
  • {% endfor %} {% endfor %}

{{ _('Down') }}

    {# Column two for downward definitions #} {% for dict_ in definitions_d %} {% for num_label, definition in dict_.items() %}
  • {{ num_label }} {{ definition[1] }}
  • {% endfor %} {% endfor %}
{# Popup that displays on loading the web app - displays the crossword name, category and word count #} {# Popup that displays on completion of the crossword #}