velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bart Selders <>
Subject Parsing templates with $variables but without ##, #* etc...
Date Mon, 11 Nov 2002 23:02:26 GMT
I have (generated) templates that contain lots of literal character 
sequences like ##, #*, #if etc. It is not predictable if and when these 
appear in the template. I do not want to modify them to escape certain 

Therefore I would like to programmatically disable the parsing of ##, 
#*, #set, #if, etc. At the same time I need to parse the $variables, as 
these have to be replaced with real data.

I searched the mailing list for advice but didn't find any. I shortly 
looked at freemarker, as that template engine uses <foreach ...> 
constructs which are not in the 'way'. But before I try that I still 
would like to solve it with Velocity first.

Any ideas?


The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to  whom it is
addressed.You should not copy, disclose or distribute this communication 
without the authority of iBanx bv. iBanx bv is neither liable for 
the proper and complete transmission of the information has been maintained
nor that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return
the communication to the sender and delete and destroy all copies.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message