I'm trying to parse a given template containing custom markers.
Sample template:
"sometext $KEY$ sometext"
The easyiest way would be to parse it with a VelocityContext
containing KEY as a marker:
context.put("KEY","value");
The parsed String is then "sometext value$ sometext".
This is nasty because first, the remaining "$" must be replaced
manually and second, even an incomplete marker ($KEY) would be parsed.

How can I find a smarter workaround for this?
Thanks for help.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to