--- Webpacus/lib/Webpacus.pm 2005/11/22 12:57:41 98 +++ Webpacus/lib/Webpacus.pm 2005/12/15 02:03:25 250 @@ -10,15 +10,15 @@ # Static::Simple: will serve static files from the applications root directory # use Catalyst qw/-Debug - Static::Simple Prototype - Unicode::Encoding Config::YAML + FillInForm + SubRequest + Static::Simple /; # FormValidator -# FillInForm -our $VERSION = '0.01'; +our $VERSION = '0.19-dev'; # # Configure the application @@ -65,19 +65,27 @@ sub end : Private { my ( $self, $c ) = @_; - # Forward to View unless response body is already defined - $c->forward('View::TT') unless $c->response->body; + $c->stash->{webpacus_version} = $VERSION; -# $c->log->debug( $c->response->body ); + if ($c->response->body) { + $c->log->debug("at end body exists, we won't touch it!"); + } else { + $c->fillform( $c->req->parameters ); + + # Forward to View unless response body is already defined + $c->forward('View::TT'); + + $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; +# $c->log->debug( $c->response->body ); + } -# $c->fillform; # defaults to $c->req->parameters } =back =head1 AUTHOR -Dobrica Pavlinusic,,, +Dobrica Pavlinusic, C<< >> =head1 LICENSE