Changeset 38447

Show
Ignore:
Timestamp:
09/09/10 18:27:19 (4 years ago)
Author:
dankogai
Message:

VERSION 0.03

Location:
lang/perl/PSGI-OR-CGI/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/PSGI-OR-CGI/trunk/Changes

    r38446 r38447  
    11# 
    2 # $Id: Changes,v 0.2 2010/09/09 07:52:02 dankogai Exp dankogai $ 
     2# $Id: Changes,v 0.3 2010/09/09 09:21:14 dankogai Exp dankogai $ 
    33# Revision history for PSGI-OR-CGI 
    4 $Revision: 0.2 $ $Date: 2010/09/09 07:52:02 $ 
     4# 
     5$Revision: 0.3 $ $Date: 2010/09/09 09:21:14 $ 
     6! lib/PSGI/OR/CGI.pm 
     7  Plack::Loader mentioned 
     8  http://twitter.com/miyagawa/status/23990966098 
     9 
     100.02 2010/09/09 07:52:02 
    511! lib/PSGI/OR/CGI.pm 
    612  More PSGI compliant 
  • lang/perl/PSGI-OR-CGI/trunk/README

    r38446 r38447  
    33 
    44VERSION 
    5     $Id: README,v 0.1 2010/09/09 07:31:27 dankogai Exp $ 
     5    $Id: README,v 0.2 2010/09/09 09:21:14 dankogai Exp dankogai $ 
    66 
    77SYNOPSIS 
     
    1919   
    2020      PSGI::OR::CGI->run($app); 
     21      # or Plack::Loader->auto->run($app) if you have Plack installed 
    2122 
    2223EXPORT 
     
    3132    is invoked as PSGI or CGI (or mod_perl Registry which also sets this 
    3233    environment variable). 
     34 
     35  use Plack::Loader; # instead if you have Plack installed 
     36    If you have Plack installed, you should use Plack::Loader instead as: 
     37 
     38      use Plack::Loader; 
     39      my $app = sub { 
     40        ... 
     41      }; 
     42      Plack::Loader->auto($app); 
     43 
     44    It is more comprehensive. 
    3345 
    3446AUTHOR 
     
    6678 
    6779ACKNOWLEDGEMENTS 
    68     PSGI, PLACK 
     80    PSGI, Plack, Plack::Loader 
    6981 
    7082LICENSE AND COPYRIGHT 
  • lang/perl/PSGI-OR-CGI/trunk/lib/PSGI/OR/CGI.pm

    r38446 r38447  
    11# 
    2 # $Id: CGI.pm,v 0.2 2010/09/09 07:52:02 dankogai Exp dankogai $ 
     2# $Id: CGI.pm,v 0.3 2010/09/09 09:21:14 dankogai Exp dankogai $ 
    33# 
    44package PSGI::OR::CGI; 
     
    66use strict; 
    77 
    8 our $VERSION = sprintf "%d.%02d", q$Revision: 0.2 $ =~ /(\d+)/g; 
     8our $VERSION = sprintf "%d.%02d", q$Revision: 0.3 $ =~ /(\d+)/g; 
    99 
    1010sub run { 
     
    4141=head1 VERSION 
    4242 
    43 $Id: CGI.pm,v 0.2 2010/09/09 07:52:02 dankogai Exp dankogai $ 
     43$Id: CGI.pm,v 0.3 2010/09/09 09:21:14 dankogai Exp dankogai $ 
    4444 
    4545=head1 SYNOPSIS 
     
    5858   
    5959  PSGI::OR::CGI->run($app); 
     60  # or Plack::Loader->auto->run($app) if you have Plack installed 
    6061 
    6162=head1 EXPORT 
     
    7374script is invoked as PSGI or CGI (or mod_perl Registry which also sets 
    7475this environment variable). 
     76 
     77=head2 use Plack::Loader; # instead if you have Plack installed 
     78 
     79If you have L<Plack> installed, you should use L<Plack::Loader> instead as: 
     80 
     81  use Plack::Loader; 
     82  my $app = sub { 
     83    ... 
     84  }; 
     85  Plack::Loader->auto($app); 
     86 
     87It is more comprehensive. 
    7588 
    7689=head1 AUTHOR 
     
    114127=head1 ACKNOWLEDGEMENTS 
    115128 
    116 L<PSGI>, L<PLACK> 
     129L<PSGI>, L<Plack>, L<Plack::Loader> 
    117130 
    118131=head1 LICENSE AND COPYRIGHT