Enable jinja2 loopcontrols extension

from here: http://jinja.pocoo.org/docs/extensions/#loop-controls
Merge pull request #39 from irvingpop/master

enable jinja2 loopcontrols extension