mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Allow loops and conditions to appear anywhere in a line
This commit is contained in:
parent
66980edab1
commit
3c15589fb8
3 changed files with 23 additions and 15 deletions
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<div class="foobar"|unless="isset($baz)">
|
||||
@if ($foo || $bar)
|
||||
<p>Hello {$foo|noescape}</p>
|
||||
<p>Hello @if ($bar){$foo|noescape}@endif</p>
|
||||
<p>{{ implode('|', array_map(function(\$i) { return strtoupper(\$i); }, $bar)) }}</p>
|
||||
@end
|
||||
</div>
|
||||
|
|
@ -35,9 +35,7 @@
|
|||
<span <!--@if($k >= 2)-->class="{$val}"<!--@end-->></span>
|
||||
@endempty
|
||||
</div>
|
||||
@empty
|
||||
<div>Nothing here...</div>
|
||||
@end
|
||||
@empty<div>Nothing here...</div>@end
|
||||
|
||||
@each('incl/eachtest', $bar, 'var')
|
||||
@each('incl/eachtest', [], 'anything', 'incl/empty')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue