@register.tag()
def suggested(parser, token):
    """
    Returns a list of Recommendation (suggestions of objects) for the current user.

    Usage:

    ::

        {% suggested as suggestions [limit 5]  %}
        {% for suggested in suggestions %}
            {{ suggested.object }}
        {% endfor %}
    """
    bits = token.contents.split()
    varname = bits[2]
    try:
        limit = int(bits[4])
    except __HOLE__:
        limit = 5
    return SuggestionNode(varname, limit)
dataset/ETHPy150Open fcurella/django-recommends/recommends/templatetags/recommends.py/suggested