Changeset 25886
- Timestamp:
- 12/05/08 02:17:54 (4 years ago)
- Location:
- lang/perl/HTTP-Router/trunk/lib/HTTP
- Files:
-
- 2 modified
-
Router.pm (modified) (2 diffs)
-
Router/Match.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Router/trunk/lib/HTTP/Router.pm
r25866 r25886 121 121 print scalar(@match); # 2 122 122 123 $match = $router->match('/articles/14', { method => 'PUT' }) ){123 $match = $router->match('/articles/14', { method => 'PUT' }) 124 124 # $match->params: 125 125 # { … … 129 129 # } 130 130 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 131 142 =head1 DESCRIPTION 132 143 133 HTTP::Router is HTTP Dispatcher 144 HTTP::Router is HTTP Dispatcher. 134 145 135 146 =head1 METHODS -
lang/perl/HTTP-Router/trunk/lib/HTTP/Router/Match.pm
r25865 r25886 37 37 =head1 METHODS 38 38 39 =head2 uri_for 39 =head2 uri_for($args) 40 40 41 41 =head1 PROPERTIES
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)