On 2007-10-21, 10:52 pm, Tzury Bar Yochay <[EMAIL PROTECTED]>
wrote:
>
> athttp://webpy.org/templetor
> It says: The templating system has to look decent. No <%#foo#%> crud.
Thank you, Tzury.
The reason why Tenjin adopt ${} is to allow developers to embed
any type of expression.
Following is an example that ${} contains complex expression.
<tr class="${i % 2 and 'odd' or 'even'}>
...
</tr>
This is not allowed in Templetor.
$ klass = ((i % 2) and 'odd') or 'even'
<tr class="$klass">
...
</tr>
I prefer the former approach. It is to my liking.
--
makoto kuwata
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---