]> Devi Nivas Git - chevron.git/commit
Fixed _get_key returning prematurely
authornoah morrison <noah@morrison.ph>
Thu, 15 Jan 2015 20:02:41 +0000 (15:02 -0500)
committernoah morrison <noah@morrison.ph>
Thu, 15 Jan 2015 20:02:41 +0000 (15:02 -0500)
commit9d07dac312da86ea07ec2e08b7ff37f572f65456
treedf60915e30ec1ffd6524403318d609af1b002218
parentdbccec5aa32313657ff38df13f40487a8bff0bca
Fixed _get_key returning prematurely

Variables were clobbering other variables... badness was happening.

When given
```test.ms
{{# container }}
  {{ sibbling.child }}
{{/ container }}
```

```test.json
{
    "container": [1,2,3],
    "sibbling": {
        "child": "Just me."
    }
}
```

it was returning
```wrong.txt
  {'child': 'Just me.'}
  {'child': 'Just me.'}
  {'child': 'Just me.'}
```

when it should have returned
```right.txt
  Just me.
  Just me.
  Just me.
```
chevron/renderer.py