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=28a9254c7f12eb2ebc0c4f2718f03f21702a71ad;hp=6bd418c044e0ff141b78d1980fe3a132d02f00e1;hb=1edbdee6a1bad3524a3d97c6daaae02b5109c1d2;hpb=fa59770d86a18a7bb7b8a111061fb99b68c39110 diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index 6bd418c..28a9254 100644 --- a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod @@ -367,9 +367,9 @@ Toolkit Template template file), the actual templates go under the To create a TT view, run: - $ script/hello_create.pl view TT TT + $ script/hello_create.pl view HTML TT -This creates the C module, which is a subclass of +This creates the C module, which is a subclass of C. =over 4 @@ -380,11 +380,11 @@ The "view" keyword tells the create script that you are creating a view. =item * -The first "TT" tells the script to name the View module "TT.pm", which is a -commonly used name for TT views. You can name it anything you want, such as -"HTML.pm". If you name it something other than TT.pm be sure to set the -default_view in Hello.pm (See L for -more details on setting this). +The first argument "HTML" tells the script to name the View module "HTML.pm", +which is a commonly used name for TT views. You can name it anything you want, +such as "MyView.pm". If you have more than one view, be sure to set the +default_view in Hello.pm (See L for more +details on setting this). =item * @@ -393,10 +393,10 @@ indicating that you want to a Template Toolkit view. =back -If you look at C you will find that it only +If you look at C you will find that it only contains a config statement to set the TT extension to ".tt". -Now that the TT.pm "View" exists, Catalyst will autodiscover it and be +Now that the HTML.pm "View" exists, Catalyst will autodiscover it and be able to use it to display the view templates using the "process" method that it inherits from the C class.