X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FCatalystAndMoose.pod;fp=lib%2FCatalyst%2FManual%2FCatalystAndMoose.pod;h=a228c1630e25be5caca6c8b13ad96587a9088bc5;hp=3d0b957276627ae9521640220fcd9db55b39c185;hb=7ce05098c9b1df9078e709e5a724e821a3b3b00d;hpb=512ec6d005f882e9f4502be3bfc9db2be2e7e1fd diff --git a/lib/Catalyst/Manual/CatalystAndMoose.pod b/lib/Catalyst/Manual/CatalystAndMoose.pod index 3d0b957..a228c16 100644 --- a/lib/Catalyst/Manual/CatalystAndMoose.pod +++ b/lib/Catalyst/Manual/CatalystAndMoose.pod @@ -73,7 +73,7 @@ slightly limits the gains that could be had by wielding the full power of L attributes. Most of the accessors to information gathered during compile time (such -as configuration) are managed by C, which is a +as configuration) are managed by C, which is a L-aware version of L but not compatible with L. @@ -115,7 +115,7 @@ the actions themselves are declared: use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } - + =head2 Controller Roles It is possible to use roles to apply method modifiers on controller actions @@ -126,8 +126,8 @@ themselves. For example use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller' }; - - sub foo : Local { + + sub foo : Local { my ($self, $c) = @_; $c->res->body('Hello '); } @@ -135,24 +135,24 @@ themselves. For example my ($self, $c) = @_; $c->res->body($c->res->body . 'World'); }; - + It is possible to have action methods with attributes inside Moose roles, using L, example: package MyApp::ControllerRole; use MooseX::MethodAttributes::Role; use namespace::autoclean; - + sub foo : Local { my ($self, $c) = @_; ... } - + package MyApp::Controller::Foo; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller' }; - + with 'MyApp::ControllerRole'; =head1 AUTHORS