I can't find a good way to do this in templetor:
I want to check a variable and then show or hide a block of html
depending on its value:
I can use:
$if lots > 0:
<tr><td align="right">Vessel</td></tr>
$if lots > 0:
<tr><td align="right">Quantity</td></tr>
....
And also I can check it inside the python code and then render
different templates, but this will complicate the maintenance in some
cases.
I wish I could do something like this:
$if lots > 0:
<tr><td align="right">Vessel</td></tr>
<tr><td align="right">Quantity</td></tr>
...........................
<tr><td align="right">Arrive</td></tr>
$endif
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---