You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Bart Selders <ba...@ibanx.nl> on 2002/11/12 00:02:26 UTC

Parsing templates with $variables but without ##, #* etc...

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 
pieces.

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?

Bart



*************************************************************************
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>