Hi Katrin,
> 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?
What's stopping you from just doing this?
sometext $KEY sometext
Best regards,
-- Shinobu
--
Shinobu Kawai <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]