[Catalyst] Context sensitive template locations
Kiefer, Sascha
sk at intertivity.com
Fri Nov 25 18:30:43 CET 2005
As an alternative, you may want to try
Catalyst::View::HTML::Template::Compiled.
--esskar
> -----Original Message-----
> From: catalyst-bounces at lists.rawmode.org
> [mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Matt S Trout
> Sent: Freitag, 25. November 2005 17:46
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Context sensitive template locations
>
>
> On Fri, Nov 25, 2005 at 03:19:48PM +0100, Zbigniew Lukasiak wrote:
> > > > sub unshift_paths {
> > > > my($self, @paths) = @_;
> > > > unshift(@{$self->include_path}, @paths);
> > > > }
> > >
> > > Don't you want to rebuilt the path each time? That looks like a
> > > small memory leak
> >
> > Hmm. The question is where to add the cleaning code.
> Perhaps to the
> > process method? How would this work with subrequests? I
> cannot see
> > other situations when process would be called multiple times in one
> > request.
>
> Quite possible not, but the Template object is persistent
> across requests for performance. So after 1000 requests
> you're going to have a 1000 entry include path.
>
> Please read the Catalyst::View::TT source for details.
>
> --
> Matt S Trout Specialists in Perl consulting, web
> development, and
> Technical Director UNIX/Linux systems architecture and
> automation. Mail
> Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for
> more information
>
> + Help us build a better perl ORM:
> http://dbix-class.shadowcatsystems.co.uk/ +
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
More information about the Catalyst
mailing list