Fixing var scope in template
Merge pull request #66 from Freeaqingme/master

Fixing var scope in template