Latte variable increment ends with Parse Error, Nette 2.2.2

Notice: This thread is very old.
Member | 58

Hi, I have found issue when I have tried increment variable in latte template.
If a do this in template

{var $i = 0}
{var $i++}

It will ends with Parse Error: syntax error, unexpected ‘=’

Incrementing like this in Nette > 2.1 worsk fine.

Here is template file…efault.latte
And here is Tracy output…%20Error.htm

David Matějka
Moderator | 6089



@matej21: Thanks, I didn't see that. My bad.
But is this really happening? It will break lots of templates.

6 years ago