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

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 : ] )
renders the url for a particular actor instance <a href="{% actor_url request .