I'm creating an Akhet (Pyramid) web application. How can one generate in a mako template the URL for a given Handler/view ?
I'm looking for the equivalent of Pylons' ${url(controller="users", view="list")
I'm creating an Akhet (Pyramid) web application. How can one generate in a mako template the URL for a given Handler/view ?
I'm looking for the equivalent of Pylons' ${url(controller="users", view="list")
Copyright © 2021 Jogjafile Inc.
Akhet exposes the
URLGeneratorobject as a renderer global, so you can just useurl('users', action='list'), assumingconfig.add_handler('users', '/users/{action}', ...)in your setup.http://docs.pylonsproject.org/projects/akhet/dev/api.html#module-akhet.urlgenerator