def _urlnode_render_replacement(self, context):
  args = [arg.resolve(context) for arg in self.args]
  try:
    app = webapp.WSGIApplication.active_instance
    handler = app.get_registered_handler_by_name(self.view_name)
    return handler.get_url(implicit_args=True, *args)
  except webapp.NoUrlFoundError:
    return ''
Replacement for django's {% url %} block.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/template.py/_urlnode_render_replacement