> Perl.com had an article on CGI::Application that made an impression on me.

If you liked CGI::Application, you might also like Apache::PageKit.  You'd
have to run mod_perl to use it though.

> At the moment our site is straight CGI.  (Flat HTML pages are built from
> templates and saved, CGIs load the templates dynamically).  Once I get
> mod_perl to behave with mod_php3 (to support that legacy junk) and I plow
> my way through the eagle book, we'll be shifting, thus we want a solution
> that is friendly either way.  CGI:App and HTML::Template claim to be, as
> does TT.  Does anyone have advice in this area, or am I safe so long as I
> code cleanly?

Most templating systems are much faster under mod_perl, since it avoids
eval'ing the template every time.  However, they will work with CGI.  If you
are converned about performance but have to stick with CGI, you might do
slightly better with a really simple regex based templating tool.  Of
course, if you have to do things like connect to a database in your CGI then
compiling a template is the least of your worries.

- Perrin



Reply via email to