Skip to content

Instantly share code, notes, and snippets.

@kraih
Created June 2, 2011 08:59
Show Gist options
  • Save kraih/1004141 to your computer and use it in GitHub Desktop.
Save kraih/1004141 to your computer and use it in GitHub Desktop.
use 5.14.0;
use Mojo::Server;
# Load application with mock server
my $server = Mojo::Server->new;
my $app = $server->load_app('./myapp.pl');
# Access fully initialized application
say $app->static->paths->[0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment