It probably also needs a better function name as function potentially does a lot more than rendering a template.