12 |
use Catalyst qw/-Debug |
use Catalyst qw/-Debug |
13 |
Static::Simple |
Static::Simple |
14 |
Prototype |
Prototype |
|
Unicode::Encoding |
|
15 |
Config::YAML |
Config::YAML |
16 |
|
FillInForm |
17 |
|
SubRequest |
18 |
/; |
/; |
19 |
# FormValidator |
# FormValidator |
|
# FillInForm |
|
20 |
|
|
21 |
our $VERSION = '0.01'; |
our $VERSION = '0.15-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 |
|
$c->stash->{webpacus_version} = $VERSION; |
69 |
|
|
70 |
# Forward to View unless response body is already defined |
# Forward to View unless response body is already defined |
71 |
$c->forward('View::TT') unless $c->response->body; |
$c->forward('View::TT') unless $c->response->body; |
72 |
|
|
73 |
$c->log->debug( $c->response->body ); |
$c->fillform; # defaults to $c->req->parameters |
74 |
|
|
75 |
|
$c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; |
76 |
|
# $c->log->debug( $c->response->body ); |
77 |
|
|
|
# $c->fillform; # defaults to $c->req->parameters |
|
78 |
} |
} |
79 |
|
|
80 |
=back |
=back |
81 |
|
|
82 |
=head1 AUTHOR |
=head1 AUTHOR |
83 |
|
|
84 |
Dobrica Pavlinusic,,, |
Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >> |
85 |
|
|
86 |
=head1 LICENSE |
=head1 LICENSE |
87 |
|
|