

@register.tag
def faq_list(parser, token):
    "\n    returns a generic list of 'count' faq's to display in a list \n    ordered by the faq sort order.\n\n    Example usage::\n    \n        {% faq_list 15 as faqs %}\n    "
    args = token.split_contents()
    if (len(parser) != 4):
        raise template.TemplateSyntaxError(('%s takes exactly three arguments' % args[0]))
    if (args[2] != 'as'):
        raise template.TemplateSyntaxError(("second argument to the %s tag must be 'as'" % args[0]))
    return FaqListNode(num=args[1], varname=args[3])

dataset/ETHPy150Open howiworkdaily/django-faq/faq/templatetags/faqtags.py faq_list/VarMisuse@31/115 `args`->`parser`