Hi, isn't it possible to make the keyname 'key$'? cheers, Eric
On Tue, 2005-05-31 at 15:07 +0200, Katrin M�ller wrote: > Hi Adam, > no, the result should not contain the $-signs. The well parsed > template should look like this: > "sometext value sometext" > > Cheers, > Katrin > > > On 5/31/05, Adam Williams <[EMAIL PROTECTED]> wrote: > > Hello, Katrin. > > > > Do you want the product to contain $KEY$? If so, you need to escape > > that first $. You've likely seen > > http://jakarta.apache.org/velocity/user-guide.html#Escaping%20Valid%20VTL%20References > > > > adam > > > > On 5/31/05, Katrin M�ller <[EMAIL PROTECTED]> wrote: > > > 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] > > > > > > > > > > --------------------------------------------------------------------- > 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]
