remove trailing whitespace
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / CatalystAndMoose.pod
index 07a82e2..a228c16 100644 (file)
@@ -73,7 +73,7 @@ slightly limits the gains that could be had by wielding the full power
 of L<Moose> attributes.
 
 Most of the accessors to information gathered during compile time (such
-as configuration) are managed by C<Catalyst::ClassData>, which is a 
+as configuration) are managed by C<Catalyst::ClassData>, which is a
 L<Moose>-aware version of L<Class::Data::Inheritable> but not compatible
 with L<MooseX::ClassAttribute>.
 
@@ -115,27 +115,27 @@ 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
 from 5.80003 onwards, or use modifiers in your controller classes
 themselves. For example
 
-       package MyApp::Controller::Foo;
-       use Moose;
-       use namespace::autoclean;
-       BEGIN { extends 'Catalyst::Controller' };
-       
-    sub foo : Local { 
-           my ($self, $c) = @_;
-           $c->res->body('Hello ');
-       }
-       after foo => sub {
-               my ($self, $c) = @_;
-               $c->res->body($c->res->body . 'World');
-       };
-       
+    package MyApp::Controller::Foo;
+    use Moose;
+    use namespace::autoclean;
+    BEGIN { extends 'Catalyst::Controller' };
+
+    sub foo : Local {
+        my ($self, $c) = @_;
+        $c->res->body('Hello ');
+    }
+    after foo => sub {
+        my ($self, $c) = @_;
+        $c->res->body($c->res->body . 'World');
+    };
+
 It is possible to have action methods with attributes inside Moose roles, using
 L<MooseX::MethodAttributes>, example:
 
@@ -148,13 +148,13 @@ L<MooseX::MethodAttributes>, example:
         ...
     }
 
-       package MyApp::Controller::Foo;
-       use Moose;
-       use namespace::autoclean;
-       BEGIN { extends 'Catalyst::Controller' };
+    package MyApp::Controller::Foo;
+    use Moose;
+    use namespace::autoclean;
+    BEGIN { extends 'Catalyst::Controller' };
+
+    with 'MyApp::ControllerRole';
 
-       with 'MyApp::ControllerRole';
-       
 =head1 AUTHORS
 
 Catalyst Contributors, see Catalyst.pm