Permalink
Browse files

more doc

  • Loading branch information...
1 parent 9fd4388 commit 18b5d9c86394ac85f4e1c3aa5810f7df09ce7f56 @kazuho committed Dec 13, 2009
Showing with 12 additions and 0 deletions.
  1. +6 −0 README
  2. +6 −0 lib/CGI/Application/Emulate/PSGI.pm
View
6 README
@@ -3,11 +3,17 @@ NAME
CGI::Application
SYNOPSIS
+ # if using CGI::Application
my $app = CGI::Application::Emulate::PSGI->handler(sub {
my $webapp = WebApp->new();
$webapp->run();
});
+ # if using CGI::Application::Dispatch
+ my $app = CGI::Application::Emulate::PSGI->handler(sub {
+ WebApp::Dispatch->dispatch();
+ });
+
DESCRIPTION
CGI::Application::Emulate::PSGI is a runner to run CGI::Application as a
PSGI application. Differences from CGI::Application::PSGI are:
@@ -60,11 +60,17 @@ CGI::Application::Emulate::PSGI - Legacy-code-friendly PSGI adapter for CGI::App
=head1 SYNOPSIS
+ # if using CGI::Application
my $app = CGI::Application::Emulate::PSGI->handler(sub {
my $webapp = WebApp->new();
$webapp->run();
});
+ # if using CGI::Application::Dispatch
+ my $app = CGI::Application::Emulate::PSGI->handler(sub {
+ WebApp::Dispatch->dispatch();
+ });
+
=head1 DESCRIPTION
CGI::Application::Emulate::PSGI is a runner to run L<CGI::Application> as a PSGI application. Differences from L<CGI::Application::PSGI> are:

0 comments on commit 18b5d9c

Please sign in to comment.