Changeset 12682

Show
Ignore:
Timestamp:
05/29/08 11:29:27 (5 years ago)
Author:
tokuhirom
Message:

added synopsis

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Sledge-Pages-HTTPEngine/trunk/lib/Sledge/Pages/HTTPEngine.pm

    r12680 r12682  
    3131=head1 SYNOPSIS 
    3232 
    33   use Sledge::Pages::HTTPEngine; 
     33    package Your::Pages; 
     34    use base qw(Sledge::Pages::HTTPEngine); 
     35 
     36    # in your startup script 
     37    use HTTPEx::Declare; 
     38 
     39    interface 'ServerSimple' => { 
     40        port => 5963, 
     41    }; 
     42 
     43    run { 
     44        my $c = shift; 
     45 
     46        my $pages = Your::Pages::Root->new($c); 
     47        $pages->dispatch('index'); 
     48    }; 
    3449 
    3550=head1 DESCRIPTION