@register.tag(name="get_user_communities")
def get_user_communities(parser, token):
    bits = token.split_contents()
    if 3 != len(bits):
        raise TemplateSyntaxError('%r expects 3 arguments' % bits[0])
    if bits[-2] != 'as':
        raise TemplateSyntaxError(
            '%r expects "as" as the second argument' % bits[0])
    varname = bits[-1]
    return user_communities(varname)
dataset/ETHPy150Open zorna/zorna/zorna/communities/templatetags/communities_tags.py/get_user_communities/original