fabpot/Twig — Issue #650: Iterating over key and values does not work
Author: marcghorayeb
Created: 2012-02-29 14:46:40+00:00
State: open

Twig template:
```html
{% for field, value in data %}

{{ field }}
{{ value }}

{% endfor %}
```

This echoes the field correctly but the value doesn't seem to work.
Here is what the template compiled by twig looks like, and you can see there's an error (a space) in the name of the context variable that is set.
```php
foreach ($context['_seq'] as $context["field"] => $context["value"]) {
// line 90
echo "\t\t\t\t\t\t\t

\t\t\t\t\t\t\t\t	";
// line 91
if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
echo $_field_;
echo "
\t\t\t\t\t\t\t\t	";
// line 92
if (isset($context[" value"])) { $_ value_ = $context[" value"]; } else { $_ value_ = null; }
echo $_ value_;
echo "
\t\t\t\t\t\t\t

\t\t\t\t\t\t";
}
```