"#if" = "#if" Sorry for my mistake
-- Serge Matveenko, wap channel manager, i-FREE +7 911 777 42 44 > -----Original Message----- > From: Serge Matveenko [mailto:[EMAIL PROTECTED] > Sent: Friday, February 09, 2007 2:44 PM > To: Velocity Users List > Subject: RE: Escaping VTL in a string > > "#if" = "#if"; > > And this won't be any Velocity instruction, but will be displayed as "#if" > by the browser. > > Also you might want to escape "$" sign with "\", eg. "\$" > > > -- > Serge Matveenko, wap channel manager, i-FREE > +7 911 777 42 44 > > > -----Original Message----- > > From: Manish [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 08, 2007 10:56 AM > > To: Velocity Users List > > Subject: Escaping VTL in a string > > > > For some HTML form, I need to set value of variable as VTL string, but I > > want > > that value to be taken as "raw" VTL string and not as evaluated VTL > > string. This > > is what I am doing in the JavaScript of my .vm file -- > > > > > document.ManageSiteLinksForm.preVTL.value="\#if($SITE.getSiteDocs().size() > > > > > 0)"; > > > > but this evaluates to #if(0 > 0) and not \#if($SITE.getSiteDocs().size() > > > > 0) > > that I want > > > > How can I achieve this?? How can escape executing of this VTL inside the > > string??? "\" doesn't seem to do that > > > > TIA, > > - Manish > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED]
