Listing 11.16. Zarys widoku akcji index
<!DOCTYPE html>
<html>
  <head>
    <title>Tabliczka mnożenia</title>
    <meta charset="UTF-8" />
    <style>
    body {
        font-family: Verdana, sans-serif;
        text-align: center;
    }
    ...
    </style>
  </head>
<body>

<h1>Tabliczka mnożenia</h1>

{% set liczba_wierszy = 12 %}
{% set liczba_kolumn = 8 %}

<table>
<tr>
    <th></th>
    {% for i in 1..liczba_kolumn %}
        <th>{{ i }}</th>
    {% endfor %}
</tr>
{% for i in 1..liczba_wierszy %}
    <tr>
        <th>{{ i }}</th>
        {% for j in 1..liczba_kolumn %}
            <td>{{ i * j }}</td>
        {% endfor %}
    </tr>
{% endfor %}
</table>

</body>
</html>