paularmstrong/swig — comment on commit 88b494eb82350a067a2f32f42778e29401dfd9d9
File:  line 0
By paularmstrong:

That doesn't sound right. What are you exactly doing? This works for me:

```
exports.set = function (test) {
swig.compile('{{ blah }}', { filename: 'blah' });
var tpl = swig.compile('{% for foo in bar %}{% set foo = { blah: loop.index } %}{% include "blah" with foo %}{% endfor %}');
test.strictEqual(tpl({ bar: ['a', 'b'] }), '12');
test.done();
};
```