velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <>
Subject Re: Streaming from the middle of a template?
Date Tue, 05 Apr 2005 18:27:19 GMT
Hi Evan,

> > If all the components uses Velocity to render the content, you must be
> > using Template#merge or Velocity(Engine)#mergeTemplate or
> > Velocity(Engine)#evaluate in each of your components, correct?
> > If so, you can just put the Writer in the Context before rendering.
> >     context.put("writer", writer)
> > And in the template,
> >     $component.render($writer)
> Right right, exactly, but how to I get the writer?
> How do I get the writer from the parent velocity template such that I can
> pass it to the child templates and have there output slip right into the
> output of the parent?

I might not be understanding your situation quite well...

Right now, how exactly are you calling Velocity in your most-parent component?

Best regards,
-- Shinobu

Shinobu Kawai <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message