I had to figure this out too and it keeps coming up as a question. The short
answer is:
1. In controllers, add: "from pylons import url" and then use url(). You can add
this to a central place and use it in all your controllers.
2. In templates, just use url(), it's available and works.
Hope this helps.
- Shailesh
On 05/30/2010 10:38 PM, Krishnakant Mane wrote:
On Monday 31 May 2010 02:30 AM, Ben Bangert wrote:
On May 30, 2010, at 12:09 PM, Wyatt Baldwin wrote:
Pylons injects a few things into the template context for you along
with `h`, including (off the top of my head) `url`, `config`,
`request`, and `response`. You don't need to prefix any of those with
`h.`.
Thanks Ben.
I always used h. prefix so was confused if the same is needed in version
1.0 like it was in 0.9.7
Happy hacking.
Krishnakant.
--
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.