Bind template data to template

We bound templateData to the template, so we can use `this` in our templates to access data.