On Aug 1, 12:58pm, Jonathan Swartz wrote:
> Many Masonites have successfully used sessions with Mason. It takes about
> five lines of code in the handler.pl to integrate with Apache::Session,
> which will give you all the fancy session handling you need.
Jonathon makes an important point here.
The "Right Way To Do It", as far as template systems go, is to *not*
re-invent every wheel, but to provide the mechanism for external modules
to be loaded and used. This is where systems like Mason and TT (to name
just 2) win big. If you want to add functionality like session management,
database connectivity, custom XML parser, stateful form filling, and so on,
then simply download the relevant module (Apache::Session, DBI, XML::*,
HTML::StickyForms, etc) or write the functionality yourself and then
plug it into the relevant templating system in just a few lines of code.
Template systems shoulds be concerned with processing templates and not
implementing every piece of application functionality that anyone could
ever wish for.
A
--
Andy Wardley <[EMAIL PROTECTED]> Signature regenerating. Please remain seated.
<[EMAIL PROTECTED]> For a good time: http://www.kfs.org/~abw/