X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F03_MoreCatalystBasics.pod;h=9a6c1fd88a3648a3aca86f50d950ebb461ee25f5;hb=a0deb1a821d358de5c902f70fcd9a50258057ade;hp=718f949f44d0cbe977560172f5755f918b4700e3;hpb=cacb3819a45beb62da8e38784e503e976e3ebb69;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index 718f949..9a6c1fd 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -134,7 +134,7 @@ but a I. Although most of the items specified on the C line of your application class will be plugins, Catalyst supports a limited number of flag options (of these, C<-Debug> is the most common). See the documentation for -L to get details on +L to get details on other flags (currently C<-Engine>, C<-Home>, C<-Log>, and C<-Stats>). If you prefer, there are several other ways to enable debug output: @@ -169,7 +169,7 @@ L C provides an automatic way to load configurable parameters for your application from a central L file (versus having the values -hard-coded inside your Perl modules). Config::General uses syntax very +hard-coded inside your Perl modules). L uses syntax very similar to Apache configuration files. We will see how to use this feature of Catalyst during the authentication and authorization sections (L and @@ -178,13 +178,13 @@ L). B If you are using a version of L prior to version 1.06, be aware that Catalyst changed the default format from YAML to the more -straightforward C style. This tutorial uses the newer -C file for C. However, Catalyst supports +straightforward L style. This tutorial uses the newer +C file for L. However, Catalyst supports both formats and will automatically use either F or F (or any other format supported by L and L). If you are using a version of -Catalyst::Devel prior to 1.06, you can convert to the newer format by +L prior to 1.06, you can convert to the newer format by simply creating the F file manually and deleting F. The default contents of the F you create should only consist of one line: @@ -227,7 +227,7 @@ Then replace it with: StackTrace /; -B Recent versions of C have used a variety of +B Recent versions of L have used a variety of techniques to load these plugins/flags. For example, you might see the following: @@ -334,8 +334,8 @@ and add the following method to the controller: $c->stash(template => 'books/list.tt2'); } -B: See L for -tips on removing the leading spaces when cutting and pasting example +B: See L +for tips on removing the leading spaces when cutting and pasting example code from POD-based documents. Programmers experienced with object-oriented Perl should recognize @@ -447,8 +447,7 @@ your application. However, most Catalyst applications use the Template Toolkit, known as TT (for more information on TT, see L). Other somewhat popular view technologies include Mason (L and -L) and L -(L). +L) and L. =head2 Create a Catalyst View @@ -584,7 +583,7 @@ applies to operations as diverse as method calls, hash lookups, and list index values (see L for details and examples). In addition to the usual L module Pod documentation, you can access the TT manual at -L. +L. B While you can build all sorts of complex logic into your TT templates, you should in general keep the "code" part of your templates @@ -622,7 +621,7 @@ tutorial. In this step, we make a text file with the required SQL commands to create a database table and load some sample data. We will use SQLite -(L), a popular database that is lightweight and +(L), a popular database that is lightweight and easy to use. Be sure to get at least version 3. Open F in your editor and enter: @@ -721,7 +720,7 @@ you think that they are easier to read) then see the documentation in L (version 0.05 or greater). For using other databases, such as PostgreSQL or MySQL, see -L. +L. =head1 DATABASE ACCESS WITH DBIx::Class @@ -1151,8 +1150,8 @@ Authentication chapter of the tutorial). =item * Although it is beyond the scope of this tutorial, you may wish to use a -JavaScript or AJAX tool such as jQuery (L) or -Dojo (L). +JavaScript or AJAX tool such as jQuery (L) or +Dojo (L). =back @@ -1397,7 +1396,7 @@ update the template to do that. Let's add a new column to our book list page that takes advantage of the relationship information we manually added to our schema files in the previous section. Edit F and replace the -"empty" table cell "" with the following: +"empty" table cell "C<< >>" with the following: ... @@ -1656,4 +1655,4 @@ L. Copyright 2006-2011, Kennedy Clark, under the Creative Commons Attribution Share-Alike License Version 3.0 -(L). +(L).