Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-25 Thread Mike Kienenberger
Kienenberger [EMAIL PROTECTED] To: Shinobu Kawai [EMAIL PROTECTED]; Velocity Users List velocity-user@jakarta.apache.org Cc: Velocity Users List velocity-user@jakarta.apache.org Sent: Thursday, February 24, 2005 7:07 PM Subject: Re: Escaping in VTL (was Re: Velocity JSP Generation) Shinobu Kawai

RE: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-25 Thread Gonzalo Diethelm
Doesn't quite work that easily. The problem is that if #directive is not an actual macro, than \#directive is shown verbatim. You only should escape when the same code is legit in both the source and the generated Velocity. This can be a little confusing. I know there is no

Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-25 Thread Will Glass-Husain
:09 AM Subject: RE: Escaping in VTL (was Re: Velocity JSP Generation) Doesn't quite work that easily. The problem is that if #directive is not an actual macro, than \#directive is shown verbatim. You only should escape when the same code is legit in both the source and the generated Velocity

Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-25 Thread Nathan Bubna
will break. WILL - Original Message - From: Gonzalo Diethelm [EMAIL PROTECTED] To: 'Velocity Users List' velocity-user@jakarta.apache.org Sent: Friday, February 25, 2005 7:09 AM Subject: RE: Escaping in VTL (was Re: Velocity JSP Generation) Doesn't quite work that easily

Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-24 Thread Mike Kienenberger
Shinobu Kawai [EMAIL PROTECTED] wrote: Escaping the VTL properly was a little challenging, but otherwise it was no big deal. I still don't get the whole escaping scheme, partly because I can't find any documentation that is completely correct. We might want a document totally devoted to

Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-24 Thread Shinobu Kawai
Hi Mike, I still don't get the whole escaping scheme, partly because I can't find any documentation that is completely correct. We might want a document totally devoted to escaping in VTL. :( Escape all [$], [#], [], [!] and [']. (actually, ! might be overkill, but better safe than

Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-24 Thread Will Glass-Husain
- From: Mike Kienenberger [EMAIL PROTECTED] To: Shinobu Kawai [EMAIL PROTECTED]; Velocity Users List velocity-user@jakarta.apache.org Cc: Velocity Users List velocity-user@jakarta.apache.org Sent: Thursday, February 24, 2005 7:07 PM Subject: Re: Escaping in VTL (was Re: Velocity JSP Generation