[stringtemplate-interest] best way to expose xml in template
Terence Parr
parrt at cs.usfca.edu
Wed Dec 6 10:17:15 PST 2006
On Dec 5, 2006, at 5:24 PM, Nate wrote:
> Thanks for the reply.
>
> It would be great if there were an interface that could be implemented
> that had simply #get(String).
That is probably too flexible, leading a bigger hole I want.
Allowing the map interface took a lot of convincing from other people
before I did it. ;)
> Implementing Map or extending AbstractMap
> for this is brutal. It would also be nice to see support for
> HashTable.
That is a Map and so that should work now.
> Also Collection could be supported... $if (someSet.moo)$ would be
> equivalent to the Java: if (someSet.contains("moo"))
That is too much like logic I think.
Ter
More information about the stringtemplate-interest
mailing list