X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F02_CatalystBasics.pod;h=18ed64577d9002345c62dba5013225ad101cd532;hp=06e49864fad0b0a7113ea7c37de432c3117b7d0b;hb=3d0b2e0b0e6d80f6d419d22a6b504935af6dc84f;hpb=7cfce6e130e77a14fe70be9f61637a68e75ba8b4 diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index 06e4986..18ed645 100644 --- a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod @@ -303,7 +303,7 @@ C method. Add the following subroutine to your C file: - sub hello : Global { + sub hello :Global { my ( $self, $c ) = @_; $c->response->body("Hello, World!"); @@ -384,7 +384,7 @@ template file (C). The rest of the template is normal HTML. Change the hello method in C to the following: - sub hello : Global { + sub hello :Global { my ( $self, $c ) = @_; $c->stash->{template} = 'hello.tt'; @@ -417,7 +417,7 @@ not much there. In C, add the following method: - sub test : Local { + sub test :Local { my ( $self, $c ) = @_; $c->stash->{username} = "John";