[stringtemplate-interest] Managing template parameters

Nathan Ward nward at resqsoft.com
Thu Nov 13 09:32:34 PST 2008


Hello,
 
Is the only mechanism to pass information to templates is via formal
parameters when using template group files? I seem to be passing around a
couple of parameters all over the place just so a nested template a couple
of levels down can use the parameter. I know that templates can access
parameters of the enclosing template when one template calls/includes
another template even if they aren't specified as formal parameters. This
might make sense in this scenario where the alternative is to pass data
around in case some other template down the road needs it. However, I don't
know of a way to pass these values to templates via the Java API for testing
my templates using JUnit bases tests. 
 
   Nathan
 
Nathan Ward
ResQSoft, Inc.
703.861.9103
www.resqsoft.com
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20081113/c69d96d3/attachment.html 


More information about the stringtemplate-interest mailing list