| Squatting documentation | view source | Contained in the Squatting distribution. |
Squatting::On::CGI - if all else fails, you can still deploy on CGI
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);
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.
Give the cgi method a CGI object, and it will send the apps output to
STDOUT.
| Squatting documentation | view source | Contained in the Squatting distribution. |