def set_jinja_filters(env):
    """ Used to add custom Jinja2 filters to the env """
    import pykwiki2.jinja_filters as jinja_filters
    env.filters['idsafe'] = jinja_filters.idsafe
    return env
