mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Add support for fragment in template v2
This commit is contained in:
parent
a6afa3a61d
commit
82b9107ca0
5 changed files with 71 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
@end
|
||||
</div>
|
||||
|
||||
@fragment('rhymix')
|
||||
@forelse (Context::get('bar') as $k => $val)
|
||||
<div>
|
||||
@empty ($nosuchvar)
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
@endempty
|
||||
</div>
|
||||
@empty<div>Nothing here...</div>@end
|
||||
@endfragment
|
||||
|
||||
@each('incl/eachtest', $bar, 'var')
|
||||
@each('incl/eachtest', [], 'anything', 'incl/empty')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue