Pass the instance around when calling the templates

This way templates can leverage that data if necessary.
Merge pull request #36 from borkweb/pass-instance

Pass the instance around when calling the templates