[stringtemplate-interest] Rendering separator={} and null={}
Terence Parr
parrt at cs.usfca.edu
Tue Sep 16 14:41:14 PDT 2008
On Sep 16, 2008, at 10:57 AM, Roman Odaisky wrote:
> Hi,
>
>>> I have an renderer that performs HTML escaping. For some reason it
>>> gets
>>> applied to content of null={...} and separator={...}.
>>
>> ToWhat class do you attach the renderer? If it's String, it will do
>> it to everything.
>
> String indeed (or actually its Python counterpart). But what’s the
> reason
> behind passing the strings already in the template through the
> renderer?
try separator={} maybe. separator is a "" at moment and will render
with String.
> For “hello $user$”, the hello doesn’t get rendered, it’s assumed
> pre-rendered, then why is the logic different for other literal
> strings?
That's a literal not a string in the ST language :)
Ter
More information about the stringtemplate-interest
mailing list