/[webpac2]/Webpacus/lib/Webpacus.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/lib/Webpacus.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 83 by dpavlin, Mon Nov 21 17:46:27 2005 UTC revision 222 by dpavlin, Mon Dec 5 19:15:01 2005 UTC
# Line 9  use warnings; Line 9  use warnings;
9  #         -Debug: activates the debug mode for very useful log messages  #         -Debug: activates the debug mode for very useful log messages
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 Static::Simple Prototype Unicode::Encoding/;  use Catalyst qw/-Debug
13            Static::Simple
14            Prototype
15            Config::YAML
16            FillInForm
17            SubRequest
18    /;
19    #       FormValidator
20    
21  our $VERSION = '0.01';  our $VERSION = '0.16-dev';
22    
23  #  #
24  # Configure the application  # Configure the application
25  #  #
26  __PACKAGE__->config( name => 'Webpacus', encoding => 'ISO-8859-2' );  __PACKAGE__->config(
27            name => 'Webpacus',
28            config_file => 'config.yml',
29    );
30    
31  #  #
32  # Start the application  # Start the application
# Line 55  sub default : Private { Line 65  sub default : Private {
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->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    
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    

Legend:
Removed from v.83  
changed lines
  Added in v.222

  ViewVC Help
Powered by ViewVC 1.1.26