-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e78104f
commit 5c3d3ba
Showing
7 changed files
with
124 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="wrapper"> | ||
<div class="parent"> | ||
{"name":{"filled":true,"rendered":false,"tag":"fill:name","attrs":{},"content":["Slot parent"],"source":"Slot parent","locals":{}}} | ||
<div class="parent-content">I'm parent</div> | ||
<div class="parent-yield"> | ||
<h1>Parent yield</h1> | ||
<div class="child"> | ||
{"name":{"filled":true,"rendered":false,"tag":"fill:name","attrs":{},"content":["Slot child"],"source":"Slot child","locals":{}}} | ||
<div class="child-content">I'm child</div> | ||
<div class="child-yield"> | ||
<h1>Child yield</h1> | ||
</div> | ||
<div class="child-slot">Slot child</div> | ||
</div> | ||
</div> | ||
<div class="parent-slot">Slot parent</div> | ||
</div> | ||
{"name":{"filled":true,"rendered":false,"tag":"fill:name","attrs":{},"content":["\n ",{"tag":"div","attrs":{"class":"parent2-child2-slot"},"content":["\n parent2-child2 slot\n "]},"\n "],"source":"\n | ||
<div class="\"parent2-child2-slot\"">\n parent2-child2 slot\n</div> | ||
\n ","locals":{}}} | ||
|
||
|
||
yes is filled | ||
<div class="parent2-child2-slot">parent2-child2 slot</div> | ||
<div class="parent2-child2-yield">parent2-child2 yield</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="wrapper"> | ||
<div class="parent"> | ||
{"name":{"filled":true,"rendered":false,"tag":"fill:name","attrs":{},"content":["Slot parent"],"source":"Slot parent","locals":{}}} | ||
<div class="parent-content">I'm parent</div> | ||
<div class="parent-yield"> | ||
<h1>Parent yield</h1> | ||
<div class="child"> | ||
{"name":{"filled":true,"rendered":false,"tag":"fill:name","attrs":{},"content":["Slot child"],"source":"Slot child","locals":{}}} | ||
<div class="child-content">I'm child</div> | ||
<div class="child-yield"> | ||
<h1>Child yield</h1> | ||
</div> | ||
<div class="child-slot">Slot child</div> | ||
</div> | ||
</div> | ||
<div class="parent-slot">Slot parent</div> | ||
</div> | ||
{"name":{"filled":true,"rendered":false,"tag":"fill:name","attrs":{},"content":["\n ",{"tag":"div","attrs":{"class":"parent2-child2-slot"},"content":["\n parent2-child2 slot\n "]},"\n "],"source":"\n | ||
<div class="\"parent2-child2-slot\"">\n parent2-child2 slot\n</div> | ||
\n ","locals":{}}} | ||
|
||
|
||
yes is filled | ||
<div class="parent2-child2-slot">parent2-child2 slot</div> | ||
<div class="parent2-child2-yield">parent2-child2 yield</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="child"> | ||
{{ $slots }} | ||
|
||
<div class="child-content"> | ||
I'm child | ||
</div> | ||
|
||
<div class="child-yield"> | ||
<yield></yield> | ||
</div> | ||
|
||
<div class="child-slot"> | ||
<slot:name></slot:name> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="wrapper"> | ||
<x-parent2> | ||
<h1>Parent yield</h1> | ||
|
||
<x-child2> | ||
|
||
<h1>Child yield</h1> | ||
|
||
<fill:name>Slot child</fill:name> | ||
|
||
</x-child2> | ||
|
||
<fill:name>Slot parent</fill:name> | ||
|
||
</x-parent2> | ||
|
||
{{ $slots }} | ||
|
||
<if condition="{{ $slots.name.filled }}"> | ||
yes is filled | ||
</if> | ||
|
||
<slot:name></slot:name> | ||
|
||
<yield></yield> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="parent"> | ||
{{ $slots }} | ||
|
||
<div class="parent-content"> | ||
I'm parent | ||
</div> | ||
|
||
<div class="parent-yield"> | ||
<yield></yield> | ||
</div> | ||
|
||
<div class="parent-slot"> | ||
<slot:name></slot:name> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<x-parent2-child2> | ||
<div class="parent2-child2-yield"> | ||
parent2-child2 yield | ||
</div> | ||
|
||
<fill:name> | ||
<div class="parent2-child2-slot"> | ||
parent2-child2 slot | ||
</div> | ||
</fill:name> | ||
</x-parent2-child2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters