[stringtemplate-interest] Problem with checking length of string

Kunle Odutola Kunle_Odutola at hotmail.com
Fri Jun 2 10:07:05 PDT 2006


Kenny,

> >The output confirms that ST# works as advertised. The $if()$
> >directive in ST/ST# is checks for attribute existence. If the
> >attribute exists and is of type 'bool', it also checks that the value is
> >"true".
>
> If this is correct behavior there are already special cases for
ICollection,IDictionary and IEnumerator that break the above rule

Yeah. I just gave the essential gist of the rule. ;-)

> i guess I can get round the problem by using my own strategy object in my
code

Absolutely. Luis Leal's IAttributeStrategy abstraction in ST# enables and
supports that option.


Kunle


More information about the stringtemplate-interest mailing list