On Tue, May 12, 2015 at 10:10 AM, Randal L. Schwartz <[email protected]> wrote:
> But at another client, my quick solution was to change: > > my $template = Template->new(...); > > into > > our $template ||= Template->new(...); > > This works as long as there are no per-hit variables being passed into > the constructor. Generally those are passed into ->template instead. I'd seen examples of that in the list archive and was hopeful that it be the answer to the speed issue. Unfortunately, there are some per-hit variables passed to the constructor. Although on closer inspection I wonder if they really need to be passed to the constructor. I'll take a look at that. Thanks for all the info--I appreciate it! -- Chris Herdt Web Applications Developer http://osric.com/chris/
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
