Hi, there's a 'route_url' method on the request which you can use to generate URLs for routes [1]. regards robert
[1] http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/urldispatch.html#generating-route-urls On Fri, Dec 16, 2011 at 12:08 PM, Joshua Partogi <[email protected]> wrote: > Hello, > > Is it possible to call route name from inside templates so we do not > have to hardcode URL in our templates, i.e ${ route('hello;) } > > I tried to find the documentation for this with no luck. Your help > would be very much appreciated. > > > -- > @jpartogi > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
