[stringtemplate-interest] v4 ST

Zenaan Harkness zen at freedbms.net
Tue Oct 6 16:58:24 PDT 2009


On Tue, Oct 06, 2009 at 04:38:57PM -0700, Terence Parr wrote:
> heh, to distinguish between v4 and v3, I'm thinkingof using ST not  

Ack! I've thought this many times. Nice to see.

> StringTemplate for main class. Also using inject (or add) instead of  
> setAttribute:
> 
>          ST st = new ST("hi, <name>.");
>          st.inject("name", "Ter");

injext is annoying to type, add much easier. My vote for .add

cheers
zenaan

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.


More information about the stringtemplate-interest mailing list