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")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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