--- trunk/lib/Frey/Server.pm 2008/09/14 00:45:47 190 +++ trunk/lib/Frey/Server.pm 2008/10/31 19:51:51 213 @@ -39,10 +39,10 @@ path_session => 1, cookie_session => 'sid', callback => \&main, - debug_level => 1, + debug_level => 2, staticp => sub { $_[0]->url =~ m/\.(jpg|jpeg|gif|png|css|ico|js|html?|xml|json|ya?ml)(\?.*)?$/ }, ); - $Module::Reload::Debug = 1; + $Module::Reload::Debug = 1; # auto if debug_level > 1 Frey::ClassLoader->new->load_all_classes(); $server->loop; } @@ -75,12 +75,12 @@ $f = Frey::ObjectBrowser->new( fey_class => $1 ); } elsif ( $path =~ m!/od/([^/]+)(.*)! ) { $f = Frey::ObjectDesigner->new( fey_class => $1 ); - } elsif ( $path =~ m!/(markup|html)/([^/]+)(.*)! ) { + } elsif ( $path =~ m!/(markup|request)/([^/]+)(.*)! ) { $f = Frey::Run->new( class => $2 ); } else { $f = Frey::ClassBrowser->new; } - $f->html( $req ) if $f; + $f->request( $req ) if $f; };