When creating the template object, give it a global attribute.
session = ... whatever you do
render = web.template.render('templates', globals={'session':
session})
Then in a template, you can access the session by calling $session.
On Oct 22, 9:03 am, Matt Silbernagel <[email protected]> wrote:
> Is there a way to access the session dictionary directly from the
> template, as opposed to passing it to the render method?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---