On Thu, Apr 19, 2012 at 12:48 PM, Makto <zhongq...@gmail.com> wrote:

> Got it!
> Can we treat the "def with (v1, v2, ...)" as a declaration of all the
> variables(v1, v2...) that will be used in the template?
>

Yes, but it is more than that.

You can say:

$def with (v1, v2, v3="foo")

or

$def with (v1, v2, **kwargs)

etc.

The first form is commonly used, but the latter one is rarely used.

Anand

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to