def unsupported(name):

    def warn_unsupported(*args, **kwargs):
        raise TemplateError(f"Use of '{name}' is not supported in limited templates")
    return warn_unsupported
def unsupported(name):

    def warn_unsupported(*args, **kwargs):
        raise TemplateError(f"Use of '{name}' is not supported in limited templates")
    return warn_unsupported