Changeset 10462 for lang/perl/Okina/trunk/okina-starter
- Timestamp:
- 04/25/08 23:47:08 (5 years ago)
- Files:
-
- 1 modified
-
lang/perl/Okina/trunk/okina-starter (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Okina/trunk/okina-starter
r10460 r10462 176 176 use 5.00800; 177 177 our $VERSION = '0.01'; 178 179 178 use UNIVERSAL::require; 180 179 use [% module %]::Dispatcher; 181 182 sub handle_request { 183 my $c = shift; 184 my $res = [% module %]::Dispatcher->match( $c->req->as_http_request ); 185 my $controller = $res->{controller}; 186 my $action = $res->{action}; 187 $controller->use or die $@; 188 # TODO: validate. 189 $controller->can($action)->( $c ); 190 } 180 use [% module %]::Config; 181 use Okina; 191 182 192 183 1; … … 205 196 file: lib/$dist/Config.pm 206 197 template: | 207 package Hoge::Config;198 package [% module %]::Config; 208 199 use strict; 209 200 use warnings;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)