Permalink
Browse files

fixed one-file app

  • Loading branch information...
1 parent 653c911 commit 55f8404a9ea1ff603d55e4c264dd7b3382e8067b Zbigniew Lukasiak committed Nov 14, 2010
Showing with 4 additions and 0 deletions.
  1. +2 −0 lib/WebNano.pm
  2. +2 −0 t/onefile.t
View
@@ -66,6 +66,7 @@ app.psgi file like this:
{
package MyApp;
use base 'WebNano';
+ 1;
}
{
@@ -76,6 +77,7 @@ app.psgi file like this:
my $self = shift;
return 'This is my home';
}
+ 1;
}
my $app = MyApp->new();
View
@@ -19,6 +19,7 @@ done_testing;
{
package MyApp;
use base 'WebNano';
+ 1;
}
{
@@ -29,5 +30,6 @@ done_testing;
my $self = shift;
return 'This is my home';
}
+ 1;
}

0 comments on commit 55f8404

Please sign in to comment.