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 |
/; |
/; |
18 |
# FormValidator |
# FormValidator |
|
# FillInForm |
|
19 |
|
|
20 |
our $VERSION = '0.01'; |
our $VERSION = '0.13-dev'; |
21 |
|
|
22 |
# |
# |
23 |
# Configure the application |
# Configure the application |
24 |
# |
# |
25 |
__PACKAGE__->config( |
__PACKAGE__->config( |
26 |
name => 'Webpacus', |
name => 'Webpacus', |
|
encoding => 'ISO-8859-2', |
|
27 |
config_file => 'config.yml', |
config_file => 'config.yml', |
28 |
); |
); |
29 |
|
|
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->log->debug( $c->response->body ); |
$c->fillform; # defaults to $c->req->parameters |
73 |
|
|
74 |
|
# $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; |
75 |
|
# $c->log->debug( $c->response->body ); |
76 |
|
|
|
# $c->fillform; # defaults to $c->req->parameters |
|
77 |
} |
} |
78 |
|
|
79 |
=back |
=back |
80 |
|
|
81 |
=head1 AUTHOR |
=head1 AUTHOR |
82 |
|
|
83 |
Dobrica Pavlinusic,,, |
Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >> |
84 |
|
|
85 |
=head1 LICENSE |
=head1 LICENSE |
86 |
|
|