From: Stevan Little Date: Mon, 11 Sep 2006 20:31:23 +0000 (+0000) Subject: Adding Class::MOP::Browser catalyst app X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b8a2231726a0ec2cc0f9f6308e8b2d006df65f02;p=gitmo%2FClass-MOP.git Adding Class::MOP::Browser catalyst app --- diff --git a/lib/Class/MOP/Browser.pm b/lib/Class/MOP/Browser.pm index 2141c5a..bbb138b 100644 --- a/lib/Class/MOP/Browser.pm +++ b/lib/Class/MOP/Browser.pm @@ -37,7 +37,7 @@ __PACKAGE__->config( __PACKAGE__->setup; -sub get_all_metaclasses { sort { $a->name cmp $b->name } Class::MOP::get_all_metaclass_instances } +sub get_all_metaclasses { sort { $a->name cmp $b->name } Class::MOP::get_all_metaclass_instances() } sub get_metaclass_by_name { shift; Class::MOP::get_metaclass_by_name(@_); diff --git a/root/templates/index.tmpl b/root/templates/index.tmpl index db64163..87daf57 100644 --- a/root/templates/index.tmpl +++ b/root/templates/index.tmpl @@ -13,20 +13,21 @@ [% END %] - -[% IF c.request.param('class') %] - + [% FOREACH area IN [ 'attributes', 'methods', 'superclasses' ] %] - [% IF c.request.param('area') == area %] - + [% IF c.request.param('class') %] + [% IF c.request.param('area') == area %] + + [% ELSE %] + + [% END %] [% ELSE %] - + [% END %] [% END %]
[% area %][% area %][% area %][% area %][% area %]
-[% END %] [% IF c.request.param('class') && c.request.param('area') == 'attributes' && c.request.param('attr') %] @@ -45,16 +46,14 @@ [% END %] -[% END %] - -[% IF c.request.param('class') && c.request.param('area') == 'methods' && c.request.param('method') %] +[% ELSIF c.request.param('class') && c.request.param('area') == 'methods' && c.request.param('method') %] [% meta = c.get_metaclass_by_name(c.request.param('class')) method = meta.get_method(c.request.param('method')) %] - + +[% ELSE %] + + + [% END %]
[% FOREACH aspect IN [ 'name', 'package_name', 'fully_qualified_name' ]%] @@ -67,6 +66,10 @@
[% aspect %]