Implement controller template rendering.