{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<ul class="tb-weather-list tb-weather-list--horizontal">
    <f:for each="{forecast}" as="dayWeather" iteration="dayIterator">
        <f:if condition="{dayIterator.cycle} < 4">
            <vh:render partial="Weathers/Forecast/Teaser/Item" arguments="{_all}"/>
        </f:if>
    </f:for>
    <f:if condition="{copyrightInfo.name}">
        <div class="tb-weather-copyright">
            <span>&copy; <a href="{copyrightInfo.url}" target="_blank">{copyrightInfo.name}</a></span>
        </div>
    </f:if>
</ul>
