Using a template to send values to the view