parameters: (templates, globals=None)
docstring: Try to load one of the given templates.
docstring_summary: Try to load one of the given templates.
docstring_tokens: Try to load one of the given templates .
function: def select_template(templates, globals=None):
      """Try to load one of the given templates."""
      env = get_env()
      for template in templates:
          try:
              return env.get_template(template, globals=globals)
          except TemplateNotFound:
              continue
      raise TemplateDoesNotExist(', '.join(templates))
function_tokens: def select_template ( templates , globals = None ) : env = get_env ( ) for template in templates : try : return env . get_template ( template , globals = globals ) except TemplateNotFound : continue raise TemplateDoesNotExist ( ', ' . join ( templates ) )