velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Sampson" <jsamp...@covia.com>
Subject RE: Quick Escaping Question
Date Mon, 05 Nov 2001 22:15:24 GMT
I just happened to try the same thing earlier today and had no problem.

>From what I observed, as long as the # was not followed by an existing
directive (like #if), it was printed out directly. Otherwise, putting a
backslash in front of it escaped it just fine.

This is with Velocity 1.1.

Justin

> -----Original Message-----
> From: Tim Chamberlain [mailto:tchamberlain@sportingnews.com]
> Sent: Monday, November 05, 2001 2:03 PM
> To: velocity-user@jakarta.apache.org
> Subject: Quick Escaping Question
> 
> Hello List,
> 
> I have a quick question about escaping characters.  In a template I am 
> trying to output #.   If I simply type #, nothing is printed out.  The 
> manual talks about escaping $ with \$ but I did not see escaping the 
> pound sign anywhere.  I tried the same technique with # (ie \#), but \ 
> was printed out instead of the #  I was expecting.  Is it possible to 
> escape the pound character?
> 
> Thanks in advance,
> Tim
> 
> --
> To unsubscribe, e-mail:   
> <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:velocity-user-help@jakarta.apache.org>


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


Mime
View raw message