toolware/templatetags/strings.py
def str2tokenstags(string, delimiter):
    """
    Usage:
    {% str2tokens 'a/b/c/d' '/' as token_list %}
    """

    token_list = [token.strip() for token in string.split(delimiter)]
    return token_list
def str2tokenstags(string, delimiter):
    """
    Usage:
    {% str2tokens 'a/b/c/d' '/' as token_list %}
    """

    token_list = [token.strip() for token in string.split(delimiter)]
    return token_list
def str2tokenstags ( string , delimiter ) : token_list = [ token . strip ( ) for token in string . split ( delimiter ) ] return token_list
Usage:
    {% str2tokens 'a/b/c/d' '/' as token_list %}
Usage : { % str2tokens a / b / c / d / as token_list % }