Hello Sergei,

Thanks very much for your reply.

I do use template engine. But I am wondering how do I pass the dict
object into javascript function by which I set src of a batch of <img>
tags.


Best,
Vycon


On Jan 9, 3:08 pm, Sergei Sadovski <[email protected]> wrote:
> Hi,
>
> I guess you'd like to iterate over dictionary on template page.
> Do you use webpy's template engine to generate output (default one)?
> If so you could do as follow in your template:
>
> $def with (dict)
>
> $for key,value in dict.iteritems():
>     $key=$value
>
> Best Regards,
> Sergei

-- 
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