[stringtemplate-interest] $elseif$ not included?
FrankHarper.10118606 at bloglines.com
FrankHarper.10118606 at bloglines.com
Tue May 3 01:34:05 PDT 2005
In my templates I find that every once in a while I would like to use
something
like this
$if(attrib1)$
... attrib1 case
$elseif(attrib2)$
... attrib2
case
$else$
... default case
$endif$
But since there doesn't appear
to be an $elseif$ in ST, I resort to
the following more verbose version:
$if(attrib1)$
... attrib1 case
$else$
$if(attrib2)$
... attrib2 case
$else$
... default case
$endif$
$endif$
I'm wondering if there's
a good reason for not including an $elseif$
in ST? Or is it just a feature
that hasn't been added yet?
Cheers,
Frank
More information about the stringtemplate-interest
mailing list