/[Frey]/trunk/lib/Frey/Class/Browser.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 /trunk/lib/Frey/Class/Browser.pm

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

revision 144 by dpavlin, Wed Jul 16 16:03:09 2008 UTC revision 218 by dpavlin, Fri Oct 31 22:48:45 2008 UTC
# Line 2  package Frey::ClassBrowser; Line 2  package Frey::ClassBrowser;
2  use Moose;  use Moose;
3    
4  extends 'Frey';  extends 'Frey';
 with 'Frey::Web';  
5    
6  use Frey::ClassLoader;  use Frey::ClassLoader;
7    
# Line 21  sub markup { Line 20  sub markup {
20                                  $html .= qq|<a href="/od/$package">design</a>| if $package->can('collection');                                  $html .= qq|<a href="/od/$package">design</a>| if $package->can('collection');
21                          }                          }
22                  }                  }
23                  $html .= qq|</td><td>|;                  my @inspect;
24                  $html .= qq|<a href="/ob/$package">collection</a>| if $package->can('collection_table');                  push @inspect, qq|<a href="/ob/$package">collection</a>| if $package->can('collection_table');
25                  $html .= qq|</td></tr>|;                  push @inspect, qq|<a href="/markup/$package">markup</a>| if $package->can('markup');
26                    push @inspect, qq|<a href="/request/$package">request</a>| if $package->can('request');
27                    $html .= qq|</td><td>| . join('&nbsp;', @inspect) . qq|</td></tr>|;
28          }          }
29          $html = "<table>$html</table>" if $html;          $html = "<table>$html</table>" if $html;
30          $markup = $html;          $markup = $html;
31  }  }
32    
 sub html {  
         my ( $self, $req ) = @_;  
         my $html = $self->page( body => qq|<h1>Classes</h1>| . $self->markup );  
         $req->print( $html );  
 }  
   
33  1;  1;

Legend:
Removed from v.144  
changed lines
  Added in v.218

  ViewVC Help
Powered by ViewVC 1.1.26