Method to render a named template.