On Wed, Oct 04, 2000 at 08:18:23AM -0700, Jon Stevens wrote:
> on 10/4/2000 5:24 AM, "Olivier" <[EMAIL PROTECTED]> wrote:
> 
> > 
> > I am wondering if this functionality makes sense to you and if there
> > is some interest to support something similar.
> 
> The right way to do what you want is to combine Velocity with Turbine and
> use it that way.
> 

Humm, Turbine might be the software I need however I still believe that 
lots of applications using tree-like structures which are then serialized  
to produce a final text output would benefit from a partial rendering
facility.


it is fairly natural to associate templates to nodes in the tree, but
then it does not help to much if you cannot serialize it efficiently.


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.

Regards.

Olivier.

-- 
----------------------------------------------------------------------
Olivier Louchart-Fletcher
Email: [EMAIL PROTECTED]

Reply via email to