<!DOCTYPE html>
<html>
<head>
<title>Tabela potęg</title>
<meta charset="UTF-8" />
<style>
body {
font-family: Verdana, sans-serif;
text-align: center;
}
...
</style>
</head>
<body>
<h1>Potęgi</h1>
<h1>Potęgi</h1>
{% set podstawa = 10 %}
{% set wykladnik = 5 %}
<table>
<tr>
<th>a</th>
{% for i in 1..wykladnik %}
<th>a<sup>{{ i }}</sup></th>
{% endfor %}
</tr>
{% for i in 2..podstawa %}
<tr>
<th>{{ i }}</th>
{% for j in 1..wykladnik %}
<td>{{ i ** j }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</body>
</html>
Listing 11.17. Zarys widoku akcji index
Rozdział 11. Instrukcje sterujące for oraz if