[stringtemplate-interest] Conditional statements
Sohail Somani
sohail at taggedtype.net
Sat May 6 16:31:58 PDT 2006
On Sat, 2006-05-06 at 15:14 -0700, Terence Parr wrote:
> > So, in the case of formatting, wouldn't it be helpful if the
> > template had some
> > evaluative capabilities that go beyond boolean evaluation??
>
> I submit that it is unnecessary and worse just make ST an "me too"
> engine; nothing special. ;)
I'm still unclear as to how ST allows the view to generate a table with
alternating row/column colours. Is there an example of this?
The obvious way would be something like:
if(($i0$ % |items|)==0) something
else something else
Thanks!
Sohail
More information about the stringtemplate-interest
mailing list