[stringtemplate-interest] Angel brackets and HTML/XML

Leo R. Lundgren leo at finalresort.org
Mon Mar 8 17:04:35 PST 2010


Indeed, that's the way I do it now. It's somewhat naive to think that  
there would be efficient attribute handling when the delimiters are  
the same as the rest of the template.

I just don't really like the $$ syntax. But I'll get used to it :)


9 mar 2010 kl. 01.54 skrev Jim Idle:

> Why not change the delimiters to be $ instead? Makes it easier to do  
> HTML/XML as you need only escape the dollar.
>
> Jim
>
>> -----Original Message-----
>> From: stringtemplate-interest-bounces at antlr.org [mailto:stringtemplate-
>> interest-bounces at antlr.org] On Behalf Of Mark Wright
>> Sent: Monday, March 08, 2010 4:25 PM
>> To: Leo R. Lundgren
>> Cc: stringtemplate-interest at antlr.org
>> Subject: Re: [stringtemplate-interest] Angel brackets and HTML/XML
>>
>> I think that any < or > that is not a stringtemplate delimeter
>> should be escaped with \ like \< and \> .
>> Hope that helps.
>>
>> Regards, Mark


-|



More information about the stringtemplate-interest mailing list