Hello to everyone, I'm using kid templates, and I have this tag: <span py:content="myvar"></span> But I want to put an CLASS to this SPAN, but the CLASS will be depending on myvar, FOR EXAMPLE:
<span py:if="myvar=1" class="top" py:content="myvar"></span> <span py:if="myvar=2" class="bottom" py:content="myvar"></span> <span py:if="myvar=3" class="right" py:content="myvar"></span> <span py:if="myvar=456" class="left" py:content="myvar"></span> This works, but I'm wondering if there's a way to put all in one tag. A conditional attr. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

