Does anyone knows how to do this? locals does not seem to be
accessible from within the template.

$def with(kw)
    $# do something so that we can access first_name like this
$first_name and not have to do it like this kw['first_name']
    $first_name

It would be especially useful when we get a full row from the db and
not have to declare each argument in the template with default values.
Or if we pass the dictionary that comes from the db, we would not have
to prepend every variable by the dictionary name.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to