On Thu, Oct 05, 2000 at 10:00:09AM -0700, Jon Stevens wrote:
> on 10/5/2000 1:13 AM, "Olivier" <[EMAIL PROTECTED]> wrote:
>
> > Considere this example:
> >
> > node1 using template1
> > |
> > ----- node2 using template2
> > |
> > ----- node3 geting data from a DB
> >
> >
> > To serialize efficiently this structure, template1 should start
> > sending characters to the outputStream until the point where node2
> > should be inserted, then the outputStream is given to node2 which does
> > the same, then same again for node3 which output all its data and the
> > control goes back up the tree. template2 finish its output then
> > same for template1.
> >
> > This cannot be done using Velocity.
>
> Huh? that is what #parse is.
I haven't looked at #parse but I suspect that the control flows from
templates to templates while it should really flows from nodes to
nodes in the original tree. Again any object structure with dynamic
branching cannot take advantage of Velocity as of now.
Olivier
--
----------------------------------------------------------------------
Olivier Louchart-Fletcher
Email: [EMAIL PROTECTED]