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 |
14 |
Config::YAML |
Config::YAML |
15 |
FillInForm |
FillInForm |
16 |
|
SubRequest |
17 |
|
Static::Simple |
18 |
|
StackTrace |
19 |
/; |
/; |
20 |
# FormValidator |
# FormValidator |
21 |
|
|
22 |
our $VERSION = '0.13-dev'; |
our $VERSION = '0.30-dev'; |
23 |
|
|
24 |
# |
# |
25 |
# Configure the application |
# Configure the application |
68 |
|
|
69 |
$c->stash->{webpacus_version} = $VERSION; |
$c->stash->{webpacus_version} = $VERSION; |
70 |
|
|
71 |
# Forward to View unless response body is already defined |
if ($c->response->body) { |
72 |
$c->forward('View::TT') unless $c->response->body; |
$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->fillform; # defaults to $c->req->parameters |
$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->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; |
# $c->log->debug( $c->response->body ); |
83 |
# $c->log->debug( $c->response->body ); |
} |
84 |
|
|
85 |
} |
} |
86 |
|
|