code: def templates_for_host(templates):
      
      if not isinstance(templates, (list, tuple)):
          templates = [templates]
      theme_dir = host_theme_path()
      host_templates = []
      if theme_dir:
          for template in templates:
              host_templates.append("%s/templates/%s" % (theme_dir, template))
              host_templates.append(template)
          return host_templates
      return templates
docs: Given a template name (or list of them), returns the template names
      as a list, with each name prefixed with the device directory
      inserted into the front of the list.