On Aug 19, 12:39 pm, Eric Rasmussen <[email protected]> wrote:
> Hi Krishnakant,
>
> I'm not sure if this is exactly what you're asking, but what I've done
> before is use scripting in the template to build up a Javascript array. For
> instance:
> -------------------------------------------------------------------
>     var authors = new Array();
>     % for post in c.posts:
>         authors[${post.id}] = "${post.author}";
>     % endfor
> -------------------------------------------------------------------

Not to be too nit-picky, but isn't the `new Array()` syntax deprecated
in favor of `[]`.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to