

@register.tag
def faqs_for_topic(parser, token):
    '\n    Returns a list of \'count\' faq\'s that belong to the given topic\n    the supplied topic argument must be in the slug format \'topic-name\'\n    \n    Example usage::\n    \n        {% faqs_for_topic 5 "my-slug" as faqs %}\n    '
    args = token.split_contents()
    if (len(args) != 5):
        raise template.TemplateSyntaxError(('%s takes exactly four arguments' % args[0]))
    if (args[3] != 'as'):
        raise template.TemplateSyntaxError(("third argument to the %s tag must be 'as'" % args[0]))
    return FaqListNode(num=args[1], topic=parser[2], varname=args[4])

dataset/ETHPy150Open howiworkdaily/django-faq/faq/templatetags/faqtags.py faqs_for_topic/VarMisuse@95/241 `args`->`parser`