Add Jinja templates.  s/loop.index/loop.index0/ was needed

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>