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=2670043710cabbfeb42cdd9156c93c3247b147bc;hp=6bd418c044e0ff141b78d1980fe3a132d02f00e1;hb=4768184b3b277399116fbd53cae3697a9767fee5;hpb=f588643fa29e325f98c4be9d714ca51439989639 diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index 6bd418c..2670043 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. @@ -531,5 +531,5 @@ Please report any errors, issues or suggestions to the author. The most recent version of the Catalyst Tutorial can be found at L. -Copyright 2006-2008, Kennedy Clark & Gerda Shank, under Creative Commons License +Copyright 2006-2010, Kennedy Clark, under Creative Commons License (L).