velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <matti.j.aalto...@nokia.com>
Subject Rendering with escapes.
Date Mon, 24 Mar 2003 12:01:33 GMT
Hello.

I just started using Velocity. The text below is taken from the Velocity User Guide. I didn't
understand why \\\$email would render as \\\$email. I tried it and it renders as \\$email.
Am I  missing something?

Cheers,
Matti Aaltonen


Note that the \ character bind to the $ from the left. The bind-from-left rule causes \\\$email
to render as \\$email. Compare these examples to those in which > > $email is not defined.

   
$email
\$email
\\$email
\\\$email

renders as 
   
 $email
\$email
\\$email
\\\$email


  
   


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message