{namespace neos=Neos\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace common=Newland\Toubiz\Common\Neos\ViewHelpers}

<f:layout name="Default" />

<f:section name="Content">
    <common:slot.render slot="aboveTeaserList" context="{ events: events }" />
    <ul>
        <f:for each="{eventDates}" as="date">
            <vh:render
                partial="EventDates/ListItem"
                arguments="{
                    eventDate: date,
                    targetNode: documentNode
                }" />

        </f:for>
    </ul>
    <common:slot.render slot="belowTeaserList" context="{ events: events }" />
</f:section>
