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

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

revision 271 by dpavlin, Sat Nov 1 00:14:05 2008 UTC revision 272 by dpavlin, Wed Nov 5 08:20:46 2008 UTC
# Line 13  sub markup { Line 13  sub markup {
13          my $f = Frey::ClassLoader->new;          my $f = Frey::ClassLoader->new;
14          my $html;          my $html;
15          foreach my $package ( $f->classes ) {          foreach my $package ( $f->classes ) {
16                  $html .= qq|<tr><td><a href="/~/$package" title="| . $f->package_path( $package ) . qq|">$package</a></td><td>|;                  $html .= qq|<tr><td><a href="/Frey-Introspect?class=$package" title="| . $f->package_path( $package ) . qq|">$package</a></td><td>|;
17                  if ( $package->can('meta') ) {                  if ( $package->can('meta') ) {
18                          if ( $package->meta->isa('Moose::Meta::Role') ) {                          if ( $package->meta->isa('Moose::Meta::Role') ) {
19                                  $html .= qq|role|;                                  $html .= qq|role|;
20                          } else {                          } else {
21                                  $html .= qq|<a href="/od/$package">design</a>| if $package->can('collection');                                  $html .= qq|<a href="/Frey-ObjectDesigner?class=$package">design</a>| if $package->can('collection');
22                          }                          }
23                  }                  }
24                  my @inspect;                  my @inspect;
25                  push @inspect, qq|<a href="/ob/$package">collection</a>| if $package->can('collection_table');                  push @inspect, qq|<a href="/Frey-ObjectBrowser?class=$package">collection</a>| if $package->can('collection_table');
26                  foreach my $try ( Frey::Run->execute ) {                  foreach my $try ( Frey::Run->execute ) {
27                          push @inspect, qq|<a href="/$try/$package">$try</a>| if $package->can($try);                          push @inspect, qq|<a href="/$package/$try">$try</a>| if $package->can($try);
28                  }                  }
29                  $html .= qq|</td><td>| . join('&nbsp;', @inspect) . qq|</td></tr>|;                  $html .= qq|</td><td>| . join('&nbsp;', @inspect) . qq|</td></tr>|;
30          }          }

Legend:
Removed from v.271  
changed lines
  Added in v.272

  ViewVC Help
Powered by ViewVC 1.1.26