Description
To handle arrays and collection rendering elegantly, we need to introduce loop directives. Adding support for @foreach will significantly reduce boilerplate code when rendering dynamic lists or tables in Webrium View.
Proposed Syntax
<ul>
@foreach($items as $item)
<li>{{ $item->name }}</li>
@endforeach
</ul>
Expected Behavior
The template engine should compile @foreach($a as $b) into and @Endforeach into .
Checklist
Description
To handle arrays and collection rendering elegantly, we need to introduce loop directives. Adding support for
@foreachwill significantly reduce boilerplate code when rendering dynamic lists or tables in Webrium View.Proposed Syntax
Expected Behavior
The template engine should compile @foreach($a as $b) into and @Endforeach into .
Checklist