Skip to content

Instantly share code, notes, and snippets.

/test.pl Secret

Created August 17, 2014 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/138963360dfb88f670be to your computer and use it in GitHub Desktop.
Save anonymous/138963360dfb88f670be to your computer and use it in GitHub Desktop.
use Mojolicious::Lite;
use Mojo::Loader;
use Mojo::Util 'dumper';
Mojo::IOLoop->next_tick(sub {
app->ua->get('/hello');
warn "$$: ", dumper(Mojo::Loader->new->data('main'));
});
get '/hello';
app->start;
__DATA__
@@ hello.html.ep
Hello World!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment