I don't know .. is it just me to spend more time trying to get thing done with kid templates then working with turbogears?
I have a project that has been a lot of fun to working except for kid, it occupies the majority of my team and delays my project completion.

If I was a bully, I would beat that kid up!

Anyhow, I am simply trying to do a simple if/else statement and it is driving me mad. I need your guys help. What would be the best way to do it?

Python Code I am converting:

if data = "">   print "<td class='lightsout'></td>"
else:
   print  "<td class='lightson'> data </td>"


kid template code


 <tr py:for="" in results">
      <td py:for="" in d">
         ${data}

actually, easier said.. I am trying to replace all occurrences of string "0" with an empty string ""

I have read the kid docs but they seem to be pretty brief and missing a lot of helpful information.

thanks in advance.   



--
-mike


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

Reply via email to