Skip to content

Instantly share code, notes, and snippets.

@yko

yko/later.pl Secret

Created January 24, 2011 20:08
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 yko/e53165bbf48a0edaec72 to your computer and use it in GitHub Desktop.
Save yko/e53165bbf48a0edaec72 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Mojolicious::Lite;
get '/' => sub {
my $c = shift;
$c->session(foo => 'bar');
$c->render_later;
$c->client->async->get(
'http://mojolicio.us' => sub { $c->render(data => shift->res->body); }
)->start;
};
app->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment