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