velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdoughty <>
Subject Is it possible to have velocity ignore certain characters?
Date Fri, 08 Jun 2012 06:21:07 GMT

I'm just starting with Velocity at my internship, but I couldn't find the
answer to this. Is it possible to have Velocity ignore certain characters?
Velocity is giving an error when it encounters a '[' in the html file. I
will post the exact error tomorrow when I have access to my work computer.
The html file looks like:




It gives the error upon reading the opening bracket for encoding=html.
That's the only character that's giving me a problem. I have broken it up


#set{$D = '$'}

#set{$VARIABLE = '{variable[encoding=html]}'}



This works fine, but there's about a hundred different locations that a
variation of this code is listed in the files and I'm hoping there's an
easier way to manage it. Can you just list certain characters to ignore in
the template, or some variation of this? Thank you!
View this message in context:
Sent from the Velocity - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message