Add support for fragment in template v2

This commit is contained in:
Kijin Sung 2023-10-17 22:25:53 +09:00
parent a6afa3a61d
commit 82b9107ca0
5 changed files with 71 additions and 2 deletions

View file

@ -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')