X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FMoreCatalystBasics.pod;h=bdf60def2803151b3c5a9534b8ef3c13a9cbf2d4;hp=7aa2cb8731a578669e7aad88a5eb70f63cb1f5e4;hb=bb7d11932cb92522c7a2a52bdeecb256dda72d4d;hpb=55beb65d70dcc3257ff21e9bf62826dba3f1a6fc diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index 7aa2cb8..bdf60de 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -453,10 +453,8 @@ Then create C in your editor and enter: As indicated by the inline comments above, the C line uses TT's META feature to provide a title to C. -Meanwhile, the outer C loop iterates through each C model -object and prints the C and C<rating> fields. An inner -C<FOREACH> loop prints the last name of each author in a comma-separated -list within a single table cell. +Meanwhile, the C<FOREACH> loop iterates through each C<book> model +object and prints the C<title> and C<rating> fields. If you are new to TT, the C<[%> and C<%]> tags are used to delimit TT code. TT supports a wide variety of directives for "calling" other @@ -928,7 +926,7 @@ C<td> cells): <td> [% # First initialize a TT variable to hold a list. Then use a TT FOREACH -%] [% # loop in 'side effect notation' to load just the last names of the -%] - [% # authors into the list. Note that the 'push' TT vmethod does not -%] + [% # authors into the list. Note that the 'push' TT vmethod does not print -%] [% # a value, so nothing will be printed here. But, if you have something -%] [% # in TT that does return a method and you don't want it printed, you -%] [% # can: 1) assign it to a bogus value, or 2) use the CALL keyword to -%] @@ -942,10 +940,10 @@ C<td> cells): [% tt_authors.join(', ') | html %] </td> -Then hit C<Ctrl+R> in your browser (not that you don't need to reload +Then hit C<Ctrl+R> in your browser (note that you don't need to reload the development server or use the C<-r> option when updating TT -templates) and you should now the the number of authors each book and -a comma-separated list of the author's last names. +templates) and you should now see the the number of authors each book +along with a comma-separated list of the author's last names. If you are still running the development server with C<DBIC_TRACE> enabled, you should also now see five more C<SELECT> statements in the