Skip to content

Commit

Permalink
PSGI example app rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sukrieh committed Sep 17, 2009
1 parent 78d2fff commit 7da0ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions example/app.psgi
@@ -1,9 +1,6 @@
use CGI::PSGI;
use webapp;

use Dancer::Config 'setting';
setting( middleware => 'PSGI' );

sub {
my $env = shift;
local *ENV = $env;
Expand Down
5 changes: 3 additions & 2 deletions example/webapp.pm
Expand Up @@ -2,8 +2,7 @@ package webapp;

use Dancer;
use Template;

set middleware => 'PSGI';
set apphandler => 'PSGI';

before sub {
var note => "I ARE IN TEH BEFOR FILTERZ";
Expand Down Expand Up @@ -71,3 +70,5 @@ get r('/(.*)') => sub {
};

dance;

1;

0 comments on commit 7da0ac0

Please sign in to comment.