Added renderView method to TemplateHelper