Hi Markus, thanks for your input.
But this is a use case I don't want :) I need *dynamic* including/parsing of templates. >From my "database" I got location from concret template, that I will use through the context.. Any idea? -Matthias -----Ursprüngliche Nachricht----- Von: Markus [mailto:[EMAIL PROTECTED] Gesendet: Montag, 11. April 2005 12:56 An: Velocity Users List Betreff: AW: Parser and Context Hi, could this be an idea? ctx.put("navigation", "http://foo/"); then <html>..... <td>#parse("navigation.vm")</td> and in the template named "navigation.vm" you have: <a href="$navigation">A LINK</a> Markus > -----Ursprüngliche Nachricht----- > Von: Matthias Wessendorf [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 11. April 2005 11:12 > An: velocity-user@jakarta.apache.org > Betreff: Parser and Context > > > Hi, > > if I do something like with Context object, all is fine: > > ctx.put("navigation","<a href=\"http://foo\">A LINK</a>"); > > > But what I really want is: > > ctx.put("navigation","#parse (\"navigation.vm\")"); > > Because I want in my *master* template something like: > > <html> > <body> > <table><tr><td>$navigation</td> > ... > </html> > > So that I have no *hard* coded parse inside that template, > since navigation page can be different by some use cases. > > Any idea for something like that? > > thanks, > Matthias > > --------------------------------------------------------------------- > 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]