On Tue, Oct 23, 2001 at 01:16:40PM +0200, Jonas Liljegren wrote:
> Would there be an intrest of a patch for using print, if availible, in
> the construction of the compiled template if the returned value from
> the stash get() is an object?

That would cause problems with this:

   [% foo = bar %]       
   [% foo.method %]

If bar is an object then the first line should set foo to reference the 
same object so that the second line works properly.  However, your proposal
would cause foo to receive the output of bar->print().

The plan for v3 is to have an output pipeline in the context which allows
these kind of things to be mapped properly.  However, I haven't yet worked 
out exactly how to do that without taking a performance hit.  

A




Reply via email to