X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial.pod;h=af64d7fc9d6afae0252c0080b357df2ff5e92265;hb=07e73f821bce2ecf2846ddb2e1b120513d23cb18;hp=adfc086ed3142122e371ccede80852d5091b346a;hpb=1c14b7796fa01f2430bc59481aa37be748b2c661;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial.pod b/lib/Catalyst/Manual/Tutorial.pod index adfc086..af64d7f 100644 --- a/lib/Catalyst/Manual/Tutorial.pod +++ b/lib/Catalyst/Manual/Tutorial.pod @@ -59,7 +59,7 @@ files. =head2 Testing out the sample application You can test out your new application by running the server script that -catalyst provides: +Catalyst provides: $ cd My-App $ script/server.pl @@ -69,7 +69,7 @@ catalyst provides: .=----------------------+----------------------+---------------=. | Private | Class | Code | |=----------------------+----------------------+---------------=| - | /default | MyApp | CODE(0x86f08ac | + | /default | MyApp | CODE(0x86f08ac)| '=----------------------+----------------------+---------------=' "My::App" defined "!default" as "CODE(0x83fd570)" [...] [catalyst] [info] My::App powered by Catalyst 5.00 @@ -186,7 +186,7 @@ the application module). The call to C sets up configuration data for the application. The C and C items are the minimum required, and specify the name of the application and the path to the root directory where -documents, images and templates can be found. +documents, images, and templates can be found. Catalyst associates I with URLs and on receiving a request dispatches to the action that matches to request URL. The call to @@ -195,10 +195,10 @@ this action registered the application will respond to all requests with the same message "Congratulations, My::App is on Catalyst!". As you see, the default action is defined as a Private action. -Most private actions are not directly available from a web url. The -exceptions are the built-in actions, 'default','begin','end' and -'auto'. The rest can only be reached by using C. - +Most private actions are not directly available from a web url. This +also includes the built-in actions, 'default','begin','end', and +'auto', although they will be called as part of some chains. +The rest can only be reached by using C. The call to the C method also triggers the second stage of Catalyst's initialization process. In this phase Catalyst searches @@ -229,7 +229,7 @@ You can start extending the application by adding new actions: } -TODO: explain briefly about plugins, actions and components +TODO: explain briefly about plugins, actions, and components regex actions passed subexpression matches in $c->req->snippets (array ref). @@ -243,7 +243,7 @@ Catalyst works well with Template Toolkit. If you are unfamiliar with Template Toolkit then I suggest you look at L, install C