[stringtemplate-interest] Expressions in $if(...)$ statements.

Igor Katrayev ikatraev at gmail.com
Thu May 14 18:53:26 PDT 2009


On Thu, May 14, 2009 at 5:40 PM, Terence Parr <parrt at cs.usfca.edu> wrote:

>
> On May 14, 2009, at 3:07 PM, Magdalin, Vlad wrote:
>
> > Hi,
> >
> > I’m moving over from NVelocity to ST, and so far really liking the
> > strict separation of concerns. However, there are two areas of
> > functionality that are kind of in a gray area, and I’m wondering if
> > ST supports them:
> >
> > 1. Boolean operators in if() statements, for example:
> >
> > $if(someBoolValue AND someOtherBoolValue)$ …
> >             …
> > $endif$
> >
> > Is this possible?
>
> not currently...I have to do nested IF now, which is effectively an
> AND...in new version of ST I think it will be alllowed.
>
YAHOOOOOO!



> It's a slippery slope. can't really allow logic in expressions
> involving values.
>
In JSF expressions it works pretty well. The approach is very similar to
stringtemplate.

Sincerely,

Igor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090514/ae9176a5/attachment.html 


More information about the stringtemplate-interest mailing list