[Catalyst-commits] r8226 - / trunk/Catalyst-Manual/lib/Catalyst/Manual

zarquon at dev.catalyst.perl.org zarquon at dev.catalyst.perl.org
Sat Aug 16 07:52:29 BST 2008


Author: zarquon
Date: 2008-08-16 07:52:29 +0100 (Sat, 16 Aug 2008)
New Revision: 8226

Modified:
   /
   trunk/Catalyst-Manual/lib/Catalyst/Manual/Intro.pod
Log:
 r13730 at harold:  kd | 2008-08-16 07:27:09 +0100
 clarified something about :Path and :Local similarities



Property changes on: 
___________________________________________________________________
Name: svk:merge
   - 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13729
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
   + 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13730
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909

Modified: trunk/Catalyst-Manual/lib/Catalyst/Manual/Intro.pod
===================================================================
--- trunk/Catalyst-Manual/lib/Catalyst/Manual/Intro.pod	2008-08-16 06:52:17 UTC (rev 8225)
+++ trunk/Catalyst-Manual/lib/Catalyst/Manual/Intro.pod	2008-08-16 06:52:29 UTC (rev 8226)
@@ -97,7 +97,7 @@
 With Catalyst you register your actions and address them directly. For
 example:
 
-    sub hello : Global {
+    sub hello : Local {
         my ( $self, $context ) = @_;
         $context->response->body('Hello World!');
     }
@@ -105,10 +105,10 @@
 Now http://localhost:3000/hello prints "Hello World!".
 
 Note that actions with the C< :Local > attribute are equivalent to
-using a C<:Path('/action_name') > attribute (note the leading slash).
-So our action could be equivalently:
+using a C<:Path('action_name') > attribute, so our action could be
+equivalently:
 
-    sub hello : Path('/hello') {
+    sub hi : Path('hello') {
         my ( $self, $context ) = @_;
         $context->response->body('Hello World!');
     }




More information about the Catalyst-commits mailing list