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

    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=args[2], varname=args[4])
Returns a list of 'count' faq's that belong to the given topic
dataset/ETHPy150Open howiworkdaily/django-faq/faq/templatetags/faqtags.py/faqs_for_topic