- /home/me/Hello/lib/Hello/Controller/Root.pm (modify)
Attempting to restart the server
- ...
+ ...
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
| Private | Class | Method |
Create a C<root/hello.tt> template file (put it in the C<root> under
the C<Hello> directory that is the base of your application). Here is
a simple sample:
-
+
<p>
This is a TT view template, called '[% template.name %]'.
</p>
and look at L<http://localhost:3000/hello> in your again. You
should see the template that you just made.
+B<TIP:> 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<Note:> You will probably run into a variation of the "stash"
statement above that looks like:
my ( $self, $c ) = @_;
$c->stash(username => 'John',
- template => 'site/test.tt');
+ template => 'site/test.tt');
}
Notice the "Local" attribute on the C<test> method. This will cause