Hi,

nope,
context.put("KEY$","value");
isn't working (it's not identifying the whole key):

and I can't swap to
sometext $KEY sometext 
because of other requirements of the project.

On 5/31/05, Shinobu Kawai <[EMAIL PROTECTED]> wrote:
> 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]
> 
>

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

Reply via email to