NAME

Jifty::Handler - Methods related to the Mason handler

SYNOPSIS

use Jifty::Handler;

my $cgihandler = HTML::Mason::CGIHandler->new( Jifty::Handler->mason_config );

# after each request is handled
Jifty::Handler->cleanup_request;

DESCRIPTION

Jifty::Handler provides methods required to deal with Mason CGI handlers. Note that at this time there are no objects with Jifty::Handler as a class.

mason_config

Returns our Mason config. We use Jifty::MasonInterp as our Mason interpreter, and have a component root as specified in the Web/TemplateRoot framework configuration variable (or html by default). Additionally, we set up a jifty component root, as specified by the Web/DefaultTemplateRoot configuration. All interpolations are HTML-escaped by default, and we use the fatal error mode.

cleanup_request

Dispatchers should call this at the end of each request, as a class method. It flushes the session to disk, as well as flushing Jifty::DBI's cache.