in reply to mod_perl and TT2...WITHOUT a calling script?

after reading that post, i should elaborate more. This would be my index.html for instance:
<html> <body> [% INCLUDE header.html %] [% check_login() %] Welcome to the site! [% INCLUDE footer.html %] </body> </html>
now, the user would directly request the index.html page, and apache would (theoretically) run it through a mod_perl handler first, which would interpret the TT2 directives, *then* serve it to the user. It would also make a huge library of predefined perl functions available as TT2 directives (such as check_login(), which would check for a login cookie and, if found, authenticate the user).

Is this a solid idea to use perl and TT2? or should we go with ASP or some other solution?

Replies are listed 'Best First'.
Re^2: mod_perl and TT2...WITHOUT a calling script?
by merlyn (Sage) on Jul 08, 2006 at 18:10 UTC
Re^2: mod_perl and TT2...WITHOUT a calling script?
by EvanK (Chaplain) on Jul 08, 2006 at 17:20 UTC
    To elaborate, you want to, for example, have a .pl file sitting in your /etc somewhere with a bunch of subroutines you have taken the time to write, which can be called from any .html file in your DOCUMENT_ROOT?

    __________
    Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
    - Terry Pratchett