code: 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:])
docs: 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>