[stringtemplate-interest] Conditional statements

Terence Parr parrt at cs.usfca.edu
Sun May 7 14:05:02 PDT 2006


On May 6, 2006, at 8:38 PM, Galen Dunkleberger wrote:

> 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.

Cool.  that is what I do often and I think it's the right answer.

> ...
> "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 &&.

I'm a dictator ;)  Rather, I'm a conductor that picks through the  
good ideas, looking for the ones that fit in my vision of ST.

Ter


More information about the stringtemplate-interest mailing list