code: def override_template(template, content_type=None):
      '''
      Call within a controller to override the template that is used in
      your response.
  
      :param template: a valid path to a template file, just as you would specify
                       in an ``@expose``.
      :param content_type: a valid MIME type to use for the response.func_closure
      '''
  
      request.pecan['override_template'] = template
      if content_type:
          request.pecan['override_content_type'] = content_typf override_template(template, content_type=None):
      '''
      Call within a controller to override the template that is used in
      your response.
  
      :param template: a valid path to a template file, just as you would specify
                       in an ``@expose``.
      :param content_type: a valid MIME type to use for the response.func_closure
      '''
  
      request.pecan['override_template'] = template
      if content_type:
          request.pecan['override_content_type'] = content_type
docs: Call within a controller to override the template that is used in
      your response.
  
      :param template: a valid path to a template file, just as you would specify
                       in an ``@expose``.
      :param content_type: a valid MIME type to use for the response.func_closure