On Tue, 4 Jan 2005 00:14:00 +0000, Tony Bowden <[EMAIL PROTECTED]> wrote: > On Mon, Jan 03, 2005 at 06:21:14PM -0500, Perrin Harkins wrote: > > I structure my web applications so that common code can be added to all > > requests in a central place (some kind of common "setup" hook). I > > usually put my $tt->process inside of some wrapper function as well, > > since I want it to be a singleton. > > Care to share an example?
I don't know exactly how Perrin does this, but I thought it might be a good time for me to mention CGI::Application::Plugin::TT which is a Template Toolkit plugin for CGI::Application. It does pretty much what Perrin is describing above (in the context of CGI::Application). Probably not very useful if you don't use CGI::Application, but you may get some useful ideas from it. http://search.cpan.org/~ceeshek/CGI-Application-Plugin-TT-0.04/lib/CGI/Application/Plugin/TT.pm Cheers, -- Cees Hek _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
