On Wed, Oct 28, 2009 at 7:05 PM, gazza <[email protected]> wrote:
>
> hello,
>
> In pylons, I want to pass and compare a value of a context object in
> html.
>
> %if ${c.foovalue}='=fred'
> *******
> %endif
>
> how do you do this? Or can it be done?
You don't use the $ syntax in expressions or in Python escapes.
% if c.foovalue == "fred":
${c.foovalue[c.index + 1]}
% endif
--
Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---