velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Demetz" <e9904...@student.tuwien.ac.at>
Subject AW: Parser and Context
Date Mon, 11 Apr 2005 11:09:34 GMT
hi,

well I don't know exactly how it works,
but I think you have to use the RenderTool.

Markus

> -----Ursprüngliche Nachricht-----
> Von: Matthias Wessendorf [mailto:mwessendorf@pironet-ndh.com]
> Gesendet: Montag, 11. April 2005 11:59
> An: Velocity Users List
> Betreff: AW: Parser and Context
>
>
> 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:e9904146@student.tuwien.ac.at]
> 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:mwessendorf@pironet-ndh.com]
> > 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: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message