paularmstrong/swig — pull request #55 by kamranayub (2012-02-17 15:13:23+00:00)
Title: New `using` argument for `include` tag

Added new `using` argument to `include` tag that will replace the include's context with the given variable. Added passing test as well and updated docs.

Usage:

```
Given foo = { bar: 1 }

# Main template
{% for foo in thing %}
{% include 'template' using foo %}
{% endfor %}

# 'template' template
{{ bar }}
```