Return a string that matches a named route
(self, routename, **kargs)
| 635 | return self.router.match(environ) |
| 636 | |
| 637 | def get_url(self, routename, **kargs): |
| 638 | """ Return a string that matches a named route """ |
| 639 | scriptname = request.environ.get('SCRIPT_NAME', '').strip('/') + '/' |
| 640 | location = self.router.build(routename, **kargs).lstrip('/') |
| 641 | return urljoin(urljoin('/', scriptname), location) |
| 642 | |
| 643 | def route(self, path=None, method='GET', callback=None, name=None, |
| 644 | apply=None, skip=None, **config): |