9 |
# -Debug: activates the debug mode for very useful log messages |
# -Debug: activates the debug mode for very useful log messages |
10 |
# Static::Simple: will serve static files from the applications root directory |
# Static::Simple: will serve static files from the applications root directory |
11 |
# |
# |
12 |
use Catalyst qw/-Debug Static::Simple Prototype Unicode::Encoding/; |
use Catalyst qw/-Debug |
13 |
|
Static::Simple |
14 |
|
Prototype |
15 |
|
Config::YAML |
16 |
|
FillInForm |
17 |
|
/; |
18 |
|
# FormValidator |
19 |
|
|
20 |
our $VERSION = '0.01'; |
our $VERSION = '0.07-dev'; |
21 |
|
|
22 |
# |
# |
23 |
# Configure the application |
# Configure the application |
24 |
# |
# |
25 |
__PACKAGE__->config( name => 'Webpacus', encoding => 'ISO-8859-2' ); |
__PACKAGE__->config( |
26 |
|
name => 'Webpacus', |
27 |
|
config_file => 'config.yml', |
28 |
|
); |
29 |
|
|
30 |
# |
# |
31 |
# Start the application |
# Start the application |
64 |
sub end : Private { |
sub end : Private { |
65 |
my ( $self, $c ) = @_; |
my ( $self, $c ) = @_; |
66 |
|
|
67 |
|
$c->stash->{webpacus_version} = $VERSION; |
68 |
|
|
69 |
# Forward to View unless response body is already defined |
# Forward to View unless response body is already defined |
70 |
$c->forward('View::TT') unless $c->response->body; |
$c->forward('View::TT') unless $c->response->body; |
71 |
|
|
72 |
|
$c->fillform; # defaults to $c->req->parameters |
73 |
|
|
74 |
|
# $c->log->debug( $c->response->body ); |
75 |
|
|
76 |
} |
} |
77 |
|
|
78 |
=back |
=back |