-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
statamic/cms
#4257Description
It would be great to be able to do something like Blade component named slots when using partials.
I guess it would look like this:
{{ partial:two-column }}
{{ slot:sidebar }}
<p>This goes in the sidebar!</p>
{{ /slot:sidebar }}
<p>Else we are just using a plain old slot, so stick this in the main column</p>
{{ /partial:two-column }}{{# resources/views/partials/two-column.antlers.html #}}
<div class="flex">
<div class="w-1/4">
{{ slot:sidebar }}
</div>
<div class="w-3/4">
{{ slot }}
</div>
</div>Hopefully I am not missing something obvious which achieves something similar ( like section and yield 🤔 ).
ncla, sunscreem, aerni, jasonbaciulis, williamengbjerg and 1 more
Metadata
Metadata
Assignees
Labels
No labels