def split_filter(string_to_split, delimiter):
    """
    Create a custom Jinja filter to use it in the Jinja2 template. Same functionality as the split function in the
    Python language

    :param string_to_split: the string to split
    :type string_to_split: string
    :param delimiter: the delimiter to split the string into
    :type delimiter: string
    :return: the string split as a list
    :rtype: list[string]
    """
    if string_to_split is not None:
        return string_to_split.split(delimiter)
    else:
        return None