(parser, token)
Renders the URL for a particular actor instance

    ::

        <a href="{% actor_url request.user %}">View your actions</a>
        <a href="{% actor_url another_user %}">{{ another_user }}'s actions</a>
Renders the URL for a particular actor instance
Renders the URL for a particular actor instance
def actor_url(parser, token):
    """
    Renders the URL for a particular actor instance

    ::

        <a href="{% actor_url request.user %}">View your actions</a>
        <a href="{% actor_url another_user %}">{{ another_user }}'s actions</a>

    """
    bits = token.split_contents()
    if len(bits) != 2:
        raise TemplateSyntaxError("Accepted format "
                                  "{% actor_url [actor_instance] %}")
    else:
        return DisplayActivityActorUrl(*bits[1:])
def actor_url ( parser , token ) : bits = token . split_contents ( ) if len ( bits ) != 2 : raise TemplateSyntaxError ( "Accepted format " "{% actor_url [actor_instance] %}" ) else : return DisplayActivityActorUrl ( * bits [ 1 : ] )