hi stefan---unfortunately, the simpler version does not work, because after
the redirect_to, we are missing a "flush to browser and exit". here is
working code:
#!/usr/bin/env perl
> use Mojolicious::Lite;
>
> get '/' => sub {
> sub callme { calldeeper($@); }
> sub calldeeper { my $somethingbadhashappened=1;
> ($somethingbadhashappened) and completelyredirect($@); }
> sub completelyredirect { my $c=shift; $c->flash( message => "you are too
> young to die" ); $c->redirect_to("/respawn"); }
> callme($@);
> $_[0]->render(text => 'this is index, not aborted');
> };
>
> get '/respawn' => sub { $_[0]->render(text => "we are in respawn.
> correctly aborted."); };
>
> app->start;
>
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.