You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know. The only thing I can think of is to compile the {skipIf} to sth like $iterator->setFilter(fn($it) => $it === 3)), so the iterator itself is aware of the filter in order to properly evaluate isLast().
But that will of course work only in very limited set of scenarios, i.e. skipIf must be top-level and the expression may depend only on entry key/value. So it would probably need a custom syntax to make it actually work well, i.e. sth like
{foreach [1, 2, 3] as $item where $item=== 3}{$item}{sep}, {/sep}{/foreach}
Version: 2.10.3
Steps To Reproduce
https://fiddle.nette.org/latte/#14e8be81e2
Expected Behavior
The last comma should not be printed.
The text was updated successfully, but these errors were encountered: