Changeset 25886

Show
Ignore:
Timestamp:
12/05/08 02:17:54 (4 years ago)
Author:
masaki
Message:

POD

Location:
lang/perl/HTTP-Router/trunk/lib/HTTP
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-Router/trunk/lib/HTTP/Router.pm

    r25866 r25886  
    121121  print scalar(@match); # 2 
    122122 
    123   $match = $router->match('/articles/14', { method => 'PUT' }) ){ 
     123  $match = $router->match('/articles/14', { method => 'PUT' }) 
    124124  # $match->params: 
    125125  # { 
     
    129129  # } 
    130130 
     131  my $path = $router->uri_for({ controller => 'Root', action => 'index' }); 
     132  print $path; # / 
     133 
     134  $path = $router->uri_for({ 
     135      controller => 'Archive', 
     136      action     => 'by_month', 
     137      year       => '2009', 
     138      month      => '01', 
     139  }); 
     140  print $path; # /archives/2009/01 
     141 
    131142=head1 DESCRIPTION 
    132143 
    133 HTTP::Router is HTTP Dispatcher 
     144HTTP::Router is HTTP Dispatcher. 
    134145 
    135146=head1 METHODS 
  • lang/perl/HTTP-Router/trunk/lib/HTTP/Router/Match.pm

    r25865 r25886  
    3737=head1 METHODS 
    3838 
    39 =head2 uri_for 
     39=head2 uri_for($args) 
    4040 
    4141=head1 PROPERTIES