39 |
path_session => 1, |
path_session => 1, |
40 |
cookie_session => 'sid', |
cookie_session => 'sid', |
41 |
callback => \&main, |
callback => \&main, |
42 |
debug_level => 1, |
debug_level => 2, |
43 |
staticp => sub { $_[0]->url =~ m/\.(jpg|jpeg|gif|png|css|ico|js|html?|xml|json|ya?ml)(\?.*)?$/ }, |
staticp => sub { $_[0]->url =~ m/\.(jpg|jpeg|gif|png|css|ico|js|html?|xml|json|ya?ml)(\?.*)?$/ }, |
44 |
); |
); |
45 |
$Module::Reload::Debug = 1; |
$Module::Reload::Debug = 1; # auto if debug_level > 1 |
46 |
Frey::ClassLoader->new->load_all_classes(); |
Frey::ClassLoader->new->load_all_classes(); |
47 |
$server->loop; |
$server->loop; |
48 |
} |
} |
75 |
$f = Frey::ObjectBrowser->new( fey_class => $1 ); |
$f = Frey::ObjectBrowser->new( fey_class => $1 ); |
76 |
} elsif ( $path =~ m!/od/([^/]+)(.*)! ) { |
} elsif ( $path =~ m!/od/([^/]+)(.*)! ) { |
77 |
$f = Frey::ObjectDesigner->new( fey_class => $1 ); |
$f = Frey::ObjectDesigner->new( fey_class => $1 ); |
78 |
} elsif ( $path =~ m!/(markup|html)/([^/]+)(.*)! ) { |
} elsif ( $path =~ m!/(markup|request)/([^/]+)(.*)! ) { |
79 |
$f = Frey::Run->new( class => $2 ); |
$f = Frey::Run->new( class => $2 ); |
80 |
} else { |
} else { |
81 |
$f = Frey::ClassBrowser->new; |
$f = Frey::ClassBrowser->new; |
82 |
} |
} |
83 |
$f->html( $req ) if $f; |
$f->request( $req ) if $f; |
84 |
|
|
85 |
}; |
}; |
86 |
|
|