[stringtemplate-interest] StringTemplate + Doclet

Brian Clapper bmc at clapper.org
Wed Dec 22 09:38:49 PST 2010


On 12/21/10 5:43 PM, Terence Parr wrote:
> we need to add registerModelAdaptor like reg renderer then just look up when we
> do properties.

I'm very interested in how this debate pans out. I wrote a Scala front-end to
StringTemplate, called Scalasti (http://software.clapper.org/scalasti/). To
support a more Scala-like interface (i.e., the ability to put Scala objects
into a template, without requiring that they adhere to a Java Bean accessor
contract), I ended up using ASM to generate interfaces on the fly, which I then
implement via java.lang.reflect.Proxy.

If there were a more official mechanism supported by the StringTemplate API, I
could dispense with that approach.
-- 
-Brian

Brian Clapper, http://www.clapper.org/bmc/


More information about the stringtemplate-interest mailing list