NAME

Squatting::On::CGI - if all else fails, you can still deploy on CGI

SYNOPSIS

Create an app.cgi to drive the Squatting app in a CGI environment.

use App 'On::CGI';
my $q = CGI->new;
App->init;
App->relocate('/cgi-bin/app.cgi');
App->cgi($q);

DESCRIPTION

The purpose of this module is to allow Squatting apps to be used in a CGI environment. This is done by adding a cgi method to the Squatting app that knows how to "translate" between CGI and Squatting. To use this module, pass the string 'On::CGI' to the use statement that loads your Squatting app.

API

CGI -- The Lowest Common Demoninator

App->cgi($q)

Give the cgi method a CGI object, and it will send the apps output to STDOUT.

SEE ALSO

CGI