@register.tag
def get_tabs(parser, token):

    args = token.contents.split()
    tag_name = args.pop(0)

    if len(args) != 2:
        raise template.TemplateSyntaxError(
            "The {%% %s %%} tag requires two arguments" % (tag_name))

    if args[0] != "as":
        raise template.TemplateSyntaxError(
            'The second argument to the {%% %s %%} tag must be "as"' %
            (tag_name))

    tabs = [Tab(view, caption) for view, caption in settings.RAPIDSMS_TABS]
    return TabsNode(tabs, str(args[1]))
Match indices that have the routing allocation rule of
dataset/ETHPy150Open rapidsms/rapidsms-core-dev/lib/rapidsms/templatetags/tabs_tags.py/get_tabs--crossover with--dataset/ETHPy150Open elastic/curator/curator/indexlist.py/IndexList.filter_allocated