[stringtemplate-interest] StringTemplateGroup restricts the location of the templates

David Hofmann hofmanndavid at gmail.com
Thu Mar 26 03:24:19 PDT 2009


Hi all,
As far as I can see, for a template to reference another one it must to be
in the same StringTemplateGroup (stg) which is fine except for the fact that
stg only allows you to load templates from files ( of the filesystem or the
classpath )

I really need to do something like this:

StringTemplate st = new
StringTemplate(templateThatComesFromTheMoonOrWhereverElseButNotTheFileSystem);
StringTemplateGroup stg = new StringTemplateGroup(); // stg does not have
this contructor
stg.loadTemplate("moontemplate", st); // stg does not have this method

If I need to refresh the template, then I will call loadTemplate again and
that's it

Does this make sense ?
Is there a reason why we shoun't do this ?
Or is it already there and I am the one that didn't dig on it enough to find
it ?

I hope that this is not a too stupid post
Thanks in advance

--
David Daniel Hofmann
WebVAS, Nucleo S.A. - Telecom Personal Paraguay
http://hofmanndavid.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090326/02eaed45/attachment.html 


More information about the stringtemplate-interest mailing list