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=28f3ab0a1b15d248888d7fc2a4af384ca7d9d400;hp=dde6b86667e383b6ab8cbd2da70867644e1af881;hb=af0a93cff5b96bfce3983b6ca99efce2145d5912;hpb=ddfbd8506f744fe1dc407bdaa7a1e9211b2dd1d7 diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index dde6b86..28f3ab0 100644 --- a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod @@ -330,7 +330,7 @@ Save the file, and you should notice the following in your server output: - /home/me/Hello/lib/Hello/Controller/Root.pm (modify) Attempting to restart the server - ... + ... [debug] Loaded Private actions: .----------------------+--------------------------------------+--------------. | Private | Class | Method | @@ -407,7 +407,7 @@ chapters of the tutorial). Create a C template file (put it in the C under the C directory that is the base of your application). Here is a simple sample: - +

This is a TT view template, called '[% template.name %]'.

@@ -442,6 +442,11 @@ using the "-r" option -- manually restart it if you aren't), and look at L in your again. You should see the template that you just made. +B If you keep the server running with "-r" in a "background +window," don't let that window get totally hidden... if you have an +syntax error in your code, the debug server output will contain the +error information. + B You will probably run into a variation of the "stash" statement above that looks like: @@ -480,7 +485,7 @@ In C, add the following method: my ( $self, $c ) = @_; $c->stash(username => 'John', - template => 'site/test.tt'); + template => 'site/test.tt'); } Notice the "Local" attribute on the C method. This will cause