On Sat, 5 Nov 2005 14:34:48 +0000
RA Jones <[EMAIL PROTECTED]> wrote:
> The only difference is the absence of WRAPPER => 'wrapper.tmpl' in
> $obj->template('no_wrapper')->config. In those run-modes where I do not
> want to have the output wrapped I call the template like so:
> $obj->template('no_wrapper')->fill($rec);
>
> This works in a CGI environment, but not when run via mod_perl registry
> or handler - I get the same as if I had called
> $obj->template->fill($rec), ie content is wrapped. I could probably get
> round it by using something like $obj->template('default')->config, but
> only a small minority of run modes need the non-wrapper config, so it is
> a lot of extra 'noise'.

This is definitely a bug.  TT objects from different named configs were
being cached in the same place.

This is fixed in the latest release (0.17) which is on its way to CPAN.

Thanks for catch and reporting this!


Michael


---
Michael Graham <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to