[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] CAP-AnyTemplate & mod_perl


> But second and subsequent invocations (ie hit browser reload button) get
> error message, and Data::Dumper says:
>
> $VAR1 = {
>           'TemplateToolkit' => {
>                                  'INTERPOLATE' => '1',
>                                  'WRAPPER' => 'hilis.tmpl',
>                                  'TAG_STYLE' => 'asp'
>                                }
>         };
>
>
> ie part of the AT_CONFIG is missing (default_type and include_paths).
> That could explain why it is defaulting to HTML::Template and cannot
> then find a template file. But what is causing this behaviour?

Aha!  I think I know.  I believe it's a bug in AnyTemplate.  It removes
keys from its config hash as it uses them (so if there are leftover keys
it knows those are bad or misspelled).  It should be copying the config
hash before it starts deleting keys, but it looks like it isn't doing
that.  Since you're using the same config hash between requests, your
config hash is getting clobbered.

I will verify this later this evening and make a new release late
tonight.  Thanks for tracking this down!


Michael


--
Michael Graham <suppressed>



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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.