{$ctx->if_true($show_cities, 'line of truth
')} {$ctx->if_not(false, $ctx->renderIfFalse, 'safe', 'unsafe')}
    {$ctx->for_each($cities, fn($city, $i) => $ctx->renderIndexCityItem($city, $i+1))}
HTML; } function renderIndexCityItem($ctx, $city, $index) { return <<{$index} {$city} HTML; } function renderIfFalse($ctx, $str, $unsafe_str) { return << unsafe: $unsafe_str HTML; }