[stringtemplate-interest] PyST: renderer called twice

Roman Odaisky roma at qwertty.com
Tue Feb 3 02:37:01 PST 2009


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.


More information about the stringtemplate-interest mailing list