php - Twig parses space before variable -


twig seems parse space before variable part of variable's name. example, following piece of template:

<td>{{ item.status }}</td> <td>{{ item.animatorid }}</td> 

sometimes gives me following exception

variable " item" not exist in mytemplate.html.twig @ line 36 

note space in name. line 36 second line. removing space between brackets , variable fixes it, makes code less readable.

any idea how prevent behaviour?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -