Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 2, 2011
1 parent ff475cc commit ef0fafe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Mojo/Server.pm
Expand Up @@ -60,6 +60,7 @@ sub load_app {
die qq/"$file" is not a valid application.\n/
unless blessed $app && $app->isa('Mojo');
$self->app($app);
return $app;
}

# "Are you saying you're never going to eat any animal again? What about
Expand Down Expand Up @@ -158,12 +159,12 @@ following new ones.
=head2 C<load_app>
$server->load_app('./myapp.pl');
my $app = $server->load_app('./myapp.pl');
Load application from script.
Note that this method is EXPERIMENTAL and might change without warning!
print Mojo::Server->new->load_app('./myapp.pl')->app->home;
print Mojo::Server->new->load_app('./myapp.pl')->home;
=head2 C<run>
Expand Down

0 comments on commit ef0fafe

Please sign in to comment.