Fix example using Handlebars for templating function

Handlebars requires a string and not a function. As such, the example
provided will error as @template does not return a string.

- Update example to call templating function first
Merge pull request #759 from jhabdas/master

Fix example using Handlebars for templating function