[stringtemplate-interest] ST4: Setting a model adapter on an "inline" template.

Collin Fagan collin.fagan at gmail.com
Wed Jan 26 06:18:03 PST 2011


Hi,

I am writing unit tests for my upcoming ST extensions project and I've run
into a snag.

I would like to call new ST("template") and pass in a simple string for my
template, but I also need to set a model adapter. So I know I need a STGroup
but I can't seem to find a way to create a template from a string using a
STGroup. The method createStringTemplate that takes a template as a
parameter does not set model adapters or any thing like that, at lest not
that I see. Is there a way to do this? I would very much like to not have to
create template files for all or my tests.

Thanks,

Collin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110126/534dccc5/attachment.html 


More information about the stringtemplate-interest mailing list