[stringtemplate-interest] PyST: renderer called twice

Terence Parr parrt at cs.usfca.edu
Thu Feb 5 12:04:49 PST 2009


Wow...i wonder if the Java version does this. Perhaps it is calling  
the renderer on y and then again on the entire expression.
Ter
On Feb 3, 2009, at 2:37 AM, Roman Odaisky wrote:

> Hi,
>
> With a renderer set to a class that escapes HTML, the template $x;  
> null=y$
> with x="<" gives "&lt;" while the same with y="<" results in  
> "&amp;lt;". If I
> add “format="safe"” which suppresses the renderer, x is correctly  
> displayed
> unaltered, while y is rendered escaped anyway.
>
> Is this by design?
>
> PyST 3.1.
>
> -- 
> WBR
> Roman.
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list