[stringtemplate-interest] Conditional statements

Galen Dunkleberger galendunkleberger at gmail.com
Sat May 6 20:38:52 PDT 2006


Whoa, looks like I kind of opened Pandora's box here. In the end I just
decided to take the common parts of the template that could get rendered
and put them into a separate template that could be included in the
various outcomes of the nested ifs...helps keep the template looking
clean and it works fine.

...
"As for &&, I'm  
thinking that might be *too* convenient... ;)"
...

I like this answer (even though it was my request) too often a lot of
open source projects and frameworks try to be all things to all people
and they end up in chaos. ST works well now and I can deal with the lack
of &&. 

		Thanks,
			Galen
 

On Sat, 2006-05-06 at 16:57 -0700, Terence Parr wrote:
> On May 6, 2006, at 4:31 PM, Sohail Somani wrote:
> 
> > 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?
> 
> sure...here's a column example
> 
> <columnDataElements:red(), green()>
> 
> Ter
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list