def silently(*args, **kwargs):
    return ''
return_new = lambda *args, **kwargs: UndefinedSilently()


class UndefinedSilently(Undefined):
    pass
jinja2: How to make it fail Silently like djangotemplate