----- Original Message ----- 
From: "Perrin Harkins" <[EMAIL PROTECTED]>
To: "Chris Ochs" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 12:20 PM
Subject: Re: [Templates] template variable question


> On Tue, 2004-03-02 at 15:07, Chris Ochs wrote:
> > I've been trying to think of a way to do just that given what I am
trying to
> > accomplish.
>
> Have you profiles your app?  Frankly, I think you are wasting your time
> trying to optimize something so simple.  It would be different if the
> constructors did giant database queries or something.
>
> > I chose not to use the plugin architecture for adding new
> > functionality because I didn't like having to call [% use MyModule %]
before
> > accessing functions in MyModule.
>
> Perhaps you didn't realize that you can just tell TT to load a bunch of
> plugins when you call Template->new() and then you never have to load
> them explicitly in your template.

No I didn't realize that, although it makes perfect sense now that you
pointed it out and I think it's just what I was looking for.

As far as wasting time trying to optimize, some of it is just because I
didn't really know for sure and wanted to double check.  So far running TT
under mod perl things are very fast and I am extremely pleased, just want to
make sure I keep it that way..

Chris


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to