(arg)
return tpl
Select a template from a string, which can include multiple
    template paths separated by commas.
Select a template from a string, which can include multiple
    template paths separated by commas.
Select a template from a string which can include multiple template paths separated by commas .
def select_template_from_string(arg):
    """
    Select a template from a string, which can include multiple
    template paths separated by commas.
    """
    if ',' in arg:
        tpl = loader.select_template(
            [tn.strip() for tn in arg.split(',')])
    else:
        tpl = loader.get_template(arg)
    return tpl
def select_template_from_string ( arg ) : if ',' in arg : tpl = loader . select_template ( [ tn . strip ( ) for tn in arg . split ( ',' ) ] ) else : tpl = loader . get_template ( arg ) return tpl