$ cd tutorial
$ script/tutorial_server.pl
- [...] [catalyst] [debug] Debug messages enabled
- [...] [catalyst] [debug] Loaded plugins:
+ [debug] Debug messages enabled
+ [debug] Loaded plugins:
.------------------------------------------------------------------------------.
| Catalyst::Plugin::Static::Simple |
'------------------------------------------------------------------------------'
- [...] [catalyst] [debug] Loaded dispatcher "Catalyst::Dispatcher"
- [...] [catalyst] [debug] Loaded engine "Catalyst::Engine::HTTP"
- [...] [catalyst] [debug] Found home "/home/users/me/tutorial"
- [...] [catalyst] [debug] Loaded Private actions:
+ [debug] Loaded dispatcher "Catalyst::Dispatcher"
+ [debug] Loaded engine "Catalyst::Engine::HTTP"
+ [debug] Found home "/home/users/me/tutorial"
+ [debug] Loaded Private actions:
.--------------------------------------+---------------------------------------.
| Private | Class |
+--------------------------------------+---------------------------------------+
More trace messages will appear in the original terminal window:
- [...] [catalyst] [debug] **********************************
- [...] [catalyst] [debug] * Request 1 (0.063/s) [2148]
- [...] [catalyst] [debug] **********************************
- [...] [catalyst] [debug] Arguments are ""
- [...] [catalyst] [debug] "GET" request for "" from localhost
- [...] [catalyst] [info] Request took 0.046883s (21.330/s)
+ [debug] *** Request 1 (0.063/s) [2148]
+ [debug] Arguments are ""
+ [debug] "GET" request for "/" from localhost
+ [info] Request took 0.046883s (21.330/s)
.------------------------------------------------------------------+-----------.
| Action | Time |
+------------------------------------------------------------------+-----------+
All that remains is to create a simple template called "greet.tt",
containing a form with a text field called "name" like below.
- <html><head><title> [% c.name %]</head><body>
+ <html><head><title> [% c.config.name %]</head><body>
<p>[% message %]</p>
<form action="[% c.req.uri %]" method="post">
<input type="text" name="name"/>