[stringtemplate-interest] Rg Need ur Suggestion

Viuha Sundararajan viuha8 at gmail.com
Thu Sep 3 09:49:50 PDT 2009


Hello,

Does the String Template class support turning off a template within another
template?

For instance say I have a template that contains another template -
%MA_TEMPLATE%

DT $OFFICE$ $GEO$ $TIME$ $SEQ$  %MA_TEMPLATE%

Where * MA_TEMPLATE is*
/MA $NBR$

I want to be able to turn off MA_TEAMPLATE if the data element NEEDS_MA =
false

So if NEEDS_MA = true - the result after substituting the values is

DT HDL SHB 160337  026A  /MA 003

If NEEDS_MA = fase - the result after substituting the values is

DT HDL SHB 160337  026A
How would I do that with the String Template  Is this possible?

Awaiting your response

Thanks a lot
Sundar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090903/f051e2ab/attachment.html 


More information about the stringtemplate-interest mailing list