[Templates] frameworks using TT

Todd W trwww@sbcglobal.net
Sun, 9 Jul 2006 15:45:46 -0400


From: "Tom Allison" <tallison@tacocat.net>


> Todd W wrote:
>
>> CGI::Application, on the other hand, is very minimal. As an example, here 
>> is a link I wrote up to a self contained CGI::Application app that shows 
>> how to utilize the session plugin:
>>
>> http://cgiapp.erlbaum.net/cgi-bin/cgi-app/index.cgi?CgiApplicationPluginSessionExample
>
> Couldn't you run CGI::Application under FastCGI as well?
> I would think that would be the best of both worlds in terms of speed 
> while preserving the minimal qualities of CGI::Application.
>

Yes, you sure could. I use Apache::RegistryLoader, but if you are more 
proficient with FastCGI please by all means use it.

And then the plugin you want to use TT from CGI::Application is 
CGI::Application::Plugin::TT 
(http://search.cpan.org/~ceeshek/CGI-Application-Plugin-TT-1.03/)

Take a look at the synopsis, you'll see it is just as easy to get going with 
TT in CGI::App as it is with sessions.

As you progress, don't forget to put functionality that you use for all your 
applications in a super class, and then spawn off derivative applications in 
a subclass.

Todd W.