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