adding a callback function in the render template function
Merge pull request #4 from codeKonami/master

adding a callback function in the render template function