code: def add_urlhelpers(event):
      
      event['static_url'] = lambda x: static_path(x, event['request'])
      event['route_url'] = lambda name, *args, **kwargs: \
          route_path(name, event['request'], *args, **kwargs)
      event['parse_rest'] = parse_rest
      event['has_permission'] = event['request'].has_permission
docs: Add helpers to the template engine.