[stringtemplate-interest] checking in IF clause if attribue exists

Peter Knego peter at knego.net
Mon Jan 24 04:38:49 PST 2011


I'd like to do something like this:

$if(attr)$ something $endif$

If 'attr' is not defined it throws an error. Is there a way to check
attribute is defined?

Peter


More information about the stringtemplate-interest mailing list