Changeset 10464

Show
Ignore:
Timestamp:
04/26/08 00:00:03 (5 years ago)
Author:
tokuhirom
Message:

こまこまと変更してみた

Location:
lang/perl/Okina/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Okina/trunk/lib/Okina.pm

    r10461 r10464  
    22use strict; 
    33use warnings; 
    4 use 5.10.0; 
     4use 5.8.0; 
    55use Exporter 'import'; 
     6our @EXPORT = qw/conf handle_request/; 
    67 
    78our $VERSION = '0.01'; 
  • lang/perl/Okina/trunk/okina-starter

    r10462 r10464  
    166166  HTTP::Engine->new( 
    167167      config         => [% module %]->conf->{engine}, 
    168       handle_request => \&[% module %]::handle_request, 
     168      handle_request => \&_handle_request, 
    169169  )->run; 
     170 
     171  sub _handle_request { 
     172        my $c = shift; 
     173        [% module %]->handle_request( $c ); 
     174  } 
    170175--- 
    171176file: lib/$path 
     
    291296    plugins: 
    292297      - module: Interface::Standalone 
    293           conf: 
     298        conf: 
    294299          host: 0.0.0.0 
    295300          port: 14000