| 1 | package Pod::POM::Web::PSGI; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION; | |
| 7 | 2 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | $VERSION = '0.002'; | |
| 9 | } | ||
| 10 | |||
| 11 | 2 | ▶ | use CGI::Emulate::PSGI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | ▶ | use Pod::POM::Web; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | # The PSGI application, returned as the last value | ||
| 15 | # Pod::POM::Web is already designed as a persistent webapp, so that's easy | ||
| 16 | # (for the curious who wants an example of how to wrap a generic CGI application | ||
| 17 | # see on BackPAN how Pod::POM::Web::PSGI 0.001 was implemented) | ||
| 18 | 1 | ▶ | CGI::Emulate::PSGI->handler(sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 19 | 1 | Pod::POM::Web->handler | |
| 20 | }) | ||
| 21 | 2 | __END__ | |