@for (block of section().blocks; track $index) {
@if (block.title) {
{{ block.title }}
}
@if (block.text) {
{{ block.text }}
}
@if (block.fields; as fields) {
@for (field of fields; track $index) {
- {{ field[0] }}
- {{ field[1] }}
}
}
@if (block.table; as table) {
@if (table.rows.length) {
@for (header of table.headers; track $index) {
| {{ header }} |
}
@for (row of table.rows; track $index) {
@for (cell of row; track $index) {
| {{ cell }} |
}
}
} @else {
—
}
}
@if (block.chart; as chart) {
{{ chart.title }}
}
} @empty {
—
}