toolware/templatetags/strings.py
def str2tokens(string, delimiter):
    """
    Usage:
    {% with 'this, is a, string'|str2tokens:',' as token_list %}do something{% endwith %}
    """

    token_list = [token.strip() for token in string.split(delimiter)]
    return token_list
def str2tokens(string, delimiter):
    """
    Usage:
    {% with 'this, is a, string'|str2tokens:',' as token_list %}do something{% endwith %}
    """

    token_list = [token.strip() for token in string.split(delimiter)]
    return token_list
Usage:
    {% with 'this, is a, string'|str2tokens:',' as token_list %}do something{% endwith %}