Fluid
Fluid copied to clipboard
Named Slots
As an extension to components, it should be possible to provide multiple slots to one component: Named Slots.
<my:component>
<f:fragment name="slot1">some <b>content</b></f:fragment>
<f:fragment name="slot2">some <b>other</b> content</f:fragment>
</my:component>
And within the component:
<f:slot name="slot1" />
<f:slot name="slot2" />
We might also consider some other additions:
- write available slot names to the cache so that they can be fetched easily
- allow default values for slots
- provide arguments to slots to separate integration and component