[stringtemplate-interest] StringTemplate syntax questions
Kirk Woods
woods.kirk at gmail.com
Thu Mar 29 09:36:14 PDT 2007
As for indentation, ST outputs what you put in the template which is
everything between the opening << and closing >>. As you experiment with
your template, you will see how the indentation carries through especially
with nested templates.
http://www.antlr.org/wiki/display/ST/Auto-indentation explains how
indentation works.
If you need to put in < and > then you enter them as \< and \> when you are
defining your template using << and >>.
Good luck and have fun!
Kirk Woods
On 3/29/07, Johannes Luber <jaluber at gmx.de> wrote:
>
>
> Are the {} only for indention purposes or will they be output, two? If
> the latter, how does one indent in languages which don't enclose blocks
> with {}?
>
> How does one escape characters like <, > so one can output them, too? As
> I intend to turn an AST into an XML file, this capacity is necessary for
> me.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20070329/1ca9e01d/attachment.html
More information about the stringtemplate-interest
mailing list