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 |
use Catalyst qw/-Debug |
|
Static::Simple |
|
13 |
Prototype |
Prototype |
|
Unicode::Encoding |
|
14 |
Config::YAML |
Config::YAML |
15 |
|
FillInForm |
16 |
|
SubRequest |
17 |
|
Static::Simple |
18 |
|
StackTrace |
19 |
/; |
/; |
20 |
# FormValidator |
# FormValidator |
|
# FillInForm |
|
21 |
|
|
22 |
our $VERSION = '0.01'; |
our $VERSION = '0.29-dev'; |
23 |
|
|
24 |
# |
# |
25 |
# Configure the application |
# Configure the application |
26 |
# |
# |
27 |
__PACKAGE__->config( |
__PACKAGE__->config( |
28 |
name => 'Webpacus', |
name => 'Webpacus', |
|
encoding => 'ISO-8859-2', |
|
29 |
config_file => 'config.yml', |
config_file => 'config.yml', |
30 |
); |
); |
31 |
|
|
66 |
sub end : Private { |
sub end : Private { |
67 |
my ( $self, $c ) = @_; |
my ( $self, $c ) = @_; |
68 |
|
|
69 |
# Forward to View unless response body is already defined |
$c->stash->{webpacus_version} = $VERSION; |
70 |
$c->forward('View::TT') unless $c->response->body; |
|
71 |
|
if ($c->response->body) { |
72 |
|
$c->log->debug("at end body exists, we won't touch it!"); |
73 |
|
} else { |
74 |
|
$c->fillform( $c->req->params ); |
75 |
|
|
76 |
|
# Forward to View unless response body is already defined |
77 |
|
$c->forward('View::TT'); |
78 |
|
|
79 |
|
$c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new WebPAC.Suggest(#gs; |
80 |
|
$c->response->{body} =~ s#\Qnew Ajax.Updater(\E#new WebPAC.Updater(#gs; |
81 |
|
|
82 |
$c->log->debug( $c->response->body ); |
# $c->log->debug( $c->response->body ); |
83 |
|
} |
84 |
|
|
|
# $c->fillform; # defaults to $c->req->parameters |
|
85 |
} |
} |
86 |
|
|
87 |
=back |
=back |
88 |
|
|
89 |
=head1 AUTHOR |
=head1 AUTHOR |
90 |
|
|
91 |
Dobrica Pavlinusic,,, |
Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >> |
92 |
|
|
93 |
=head1 LICENSE |
=head1 LICENSE |
94 |
|
|