def filter_notrailingslash(host):
    """
    Removes a trailing slash from URLs (or anything, really)
    Usage: {{ 'www.example.com/' | notrailingslash }}
    Output: 'www.example.com'
    """
    if host.endswith("/"):
        host = host[0:-1]
    return host