/[Frey]/branches/mojo/lib/Frey/Server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/mojo/lib/Frey/Server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25 by dpavlin, Sun Jun 29 17:27:45 2008 UTC revision 28 by dpavlin, Sun Jun 29 20:13:46 2008 UTC
# Line 106  sub send_page { Line 106  sub send_page {
106                          if ( ! defined( $templates->{$module} ) ) {                          if ( ! defined( $templates->{$module} ) ) {
107                                  $req->conn->send_status_line( 404, "$module" );                                  $req->conn->send_status_line( 404, "$module" );
108                                  $req->print("Package $module not found");                                  $req->print("Package $module not found");
109                            } elsif ( ! $method ) {
110                                    $req->print( Frey::HTML->page( 'package-methods', $req, $module ) );
111                          } elsif ( grep(/^\Q$method\E$/, @{ $templates->{$module} }) ) {                          } elsif ( grep(/^\Q$method\E$/, @{ $templates->{$module} }) ) {
112                                  $req->print( Frey::HTML->page( $method, $req ) );                                  $req->print( Frey::HTML->page( $method, $req ) );
113                          } else {                          } else {
# Line 118  sub send_page { Line 120  sub send_page {
120                          warn ">> ",length( $html ), " bytes\n";                          warn ">> ",length( $html ), " bytes\n";
121                  }                  }
122                  $req->next;                  $req->next;
                 Module::Refresh->refresh;  
123          }          }
124  }  }
125    

Legend:
Removed from v.25  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26