Roall Lein-Killi wrote:
>
> On Friday 05 January 2001 05:33, you wrote:
> > I added some very basic ContextTool stuff under the whiteboard area.
> >
> > Nothing special. But maybe it'll give us a basis to discuss how we
> > may want to go about adding this functionality and what kind of tools
> > would be useful.
>
> What if the context tools works the same way as the turbine modules
> with loaders and caching of the modules (read: tools) ?
>
> Then we could specifiy in the velocity.properties where to search for
> the context tools (eksample:
> <snip>
> contexttools.package=org.apache.velocity.contexttools,
> org,yourorg,velocity.contexttools
> </snip>)
>
> And put a toolloader in the context whitch can be used like this
> <snip of vtl>
> #set $aTool = $toolLoader.getTool("org.apache.velocity.contexttool.SomeTool")
> </snip of vtl>
Definitely an idea we should look at, and if not something we add to the
core of velocity then certainly some incarnation of this could be
candidate for the a utility library if we go that way. (I am kinda
disposed to keeping tool management out of the core, and having it along
as a companion utility library, but that's just my personal feeling,
andI seem to waffle a bit on this one...)
Do you have an example to contribute? We could toss it up in the
whiteboard and let people have a go with it...
geir
> humble regards
> killi
> --
> Penguins are nice animals -
> if you get to know them!
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity