Loops
{for item in list} … {empty} … {/for} repeats part of the view, like list.map() in React.
A list with its index and an empty state
- 1. Banana
- 2. Mango
- 3. Papaya
Keys keep each row
Type in a box, then reverse: each text stays with its person because of key person.id.
- Maxamuud Xussen Mogadishu
- Cali Hargeisa
- Sahra Kismayo
An object
- name
- Maxamuud
- role
- Developer
- city
- Mogadishu
Counting, nested, in a table
| 1 | 2 | 3 | 4 |
| 2 | 4 | 6 | 8 |
| 3 | 6 | 9 | 12 |
| 4 | 8 | 12 | 16 |