code: def _get_template(path, option_key):
      '''
      Get the contents of a template file and provide it as a module type
  
      :param path: path to the template.yml file
      :type  path: ``str``
  
      :param option_key: The unique key of this template
      :type  option_key: ``str``
  
      :returns: Details about the template
      :rtype: ``tuple``
      '''
      with salt.utils.files.fopen(path, 'r') as template_f:
          template = deserialize(template_f)
          info = (option_key, template.get('description', ''), template)
      return inff _get_template(path, option_key):
      '''
      Get the contents of a template file and provide it as a module type
  
      :param path: path to the template.yml file
      :type  path: ``str``
  
      :param option_key: The unique key of this template
      :type  option_key: ``str``
  
      :returns: Details about the template
      :rtype: ``tuple``
      '''
      with salt.utils.files.fopen(path, 'r') as template_f:
          template = deserialize(template_f)
          info = (option_key, template.get('description', ''), template)
      return info
docs: Get the contents of a template file and provide it as a module type
  
      :param path: path to the template.yml file
      :type  path: ``str``
  
      :param option_key: The unique key of this template
      :type  option_key: ``str``
  
      :returns: Details about the template
      :rtype: ``tuple``