@for (part of textParts; track part) { @switch (part[0]) { @case ('text') { {{ part[1] }} } @default { } } }