Added a default templateFn to render template from a more descriptive object.