p = Template("Hello {%for key in mydic, {{mydic[key]}}%}")
dic['mydic'] = {....}
p.render(dic)
--
On Mon, Jun 25, 2012 at 8:04 AM, Xan <[email protected]> wrote:
> I have this simply code:
>
> p = Template("Hello: {{name}}")
> dic['name'] = Oscar
> p.render(dic)
>
> But
>
> I want to modify to do something like:
>
> p.Template("Hello {%for key in dic, {{dic[key]}}%}")
>
> Is it possible? Could I pass dic as whole for, for example, knowing
> its length?
>
> Thanks in advance,
> Xan.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pocoo-libs" 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/pocoo-libs?hl=en.
>
>
--
Juancarlo *Añez*
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en.