latte
latte copied to clipboard
Not possible define tags attributes dynamically with if anymore
Version: 3.0.x-dev
Bug Description
After update to newest version of latte it is no longer possible define HTML tags atributes via if.
Steps To Reproduce
Check attachement code
Expected Behavior
Work as before -> no problem, successful compilation
BUG message
'Unexpected '</div>
' (on line 21 at column 18)'
Which corresponds to if in this tag
<input type="text" class="form-control"
name="username" id="username"
placeholder="{_"Username"}" required="required"
{if ($_ENV['ENVIRONMENT']== 'test')}
value="test"
{/if}
>

The problem is somewhere else https://fiddle.nette.org/latte/#ab560f0c17
@Kubina1232 Did you find out where the problem is?
Unfortunately not. I have rewrote it to use variable.
Also now I see it is working locally with dev-master #f446 (so maybe so bug in some master build... who knows)