[Catalyst-commits] r7878 -
trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial
hkclark at dev.catalyst.perl.org
hkclark at dev.catalyst.perl.org
Sun Jun 1 23:42:08 BST 2008
Author: hkclark
Date: 2008-06-01 23:42:08 +0100 (Sun, 01 Jun 2008)
New Revision: 7878
Modified:
trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/Authentication.pod
trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod
Log:
Escape > chars and fix uri_for
Modified: trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/Authentication.pod
===================================================================
--- trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/Authentication.pod 2008-06-01 22:41:20 UTC (rev 7877)
+++ trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/Authentication.pod 2008-06-01 22:42:08 UTC (rev 7878)
@@ -442,7 +442,7 @@
}
As with the login controller, be sure to delete the
-C<$c->response->body('Matched MyApp::Controller::Logout in Logout.');>
+C<$c-E<gt>response-E<gt>body('Matched MyApp::Controller::Logout in Logout.');>
line of the C<sub index>.
Modified: trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
===================================================================
--- trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod 2008-06-01 22:41:20 UTC (rev 7877)
+++ trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod 2008-06-01 22:42:08 UTC (rev 7878)
@@ -380,7 +380,7 @@
</td>
<td>
[% # Add a link to delete a book %]
- <a href="[% Catalyst.uri_for('delete/') _ book.id %]">Delete</a>
+ <a href="[% Catalyst.uri_for('delete', book.id) %]">Delete</a>
</td>
</tr>
[% END -%]
Modified: trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod
===================================================================
--- trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod 2008-06-01 22:41:20 UTC (rev 7877)
+++ trunk/Catalyst-Manual/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod 2008-06-01 22:42:08 UTC (rev 7878)
@@ -255,8 +255,8 @@
L<Catalyst::Response|Catalyst::Response>, and
L<Catalyst::Request|Catalyst::Request>)
-C<$c->response->body> sets the HTTP response (see
-L<Catalyst::Response|Catalyst::Response>), while C<$c->welcome_message>
+C<$c-E<gt>response-E<gt>body> sets the HTTP response (see
+L<Catalyst::Response|Catalyst::Response>), while C<$c-E<gt>welcome_message>
is a special method that returns the welcome message that you saw in
your browser.
@@ -350,13 +350,13 @@
$c->stash->{template} = 'hello.tt';
}
-This time, instead of doing C<$c->response->body()>, you are setting
+This time, instead of doing C<$c-E<gt>response->body()>, you are setting
the value of the "template" hash key in the Catalyst "stash", an area
for putting information to share with other parts of your application.
The "template" key determines which template will be displayed at the
end of the method. Catalyst controllers have a default "end" action
for all methods which causes the first (or default) view to be
-rendered (unless there's a C<$c->response->body()> statement). So your
+rendered (unless there's a C<$c-E<gt>response->body()> statement). So your
template will be magically displayed at the end of your method.
After saving the file, restart the development server, and look at
More information about the Catalyst-commits
mailing list