On 6/9/07, Techniq <[EMAIL PROTECTED]> wrote:
> if I have a the following for loop:
>
> <py:for each="p in range(10)">
>     <a href="${h.url_for(controller=' foo', action='bar', page=p)}">
> $p</a>
> </py:for>
>
> It appears that 'p' cannot be used in the ${ ... } block.  if it can,
> how?  if not what other options do I have?

It works for me.  I assume you're using Genshi.  By the way, I noticed
that you have a space in controller=' foo'.  Is that in your code too?

Best Regards,
-jj

-- 
http://jjinux.blogspot.com/

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