Example app:
use Mojolicious::Lite;
get '/' => sub {
my $c = shift;
state $f = sub {
my $p = $c->param('p');
};
$f->();
$c->render(text => 1);
};
app->start;
$ mojo get 127.0.0.1:3000
> ok
> $ mojo get 127.0.0.1:3000 '#error' text
> Can't call method "req" on an undefined value at
> /Library/Perl/5.16/Mojolicious/Controller.pm line 217.
> $ mojo get 127.0.0.1:3000 '#error' text
> Can't call method "req" on an undefined value at
> /Library/Perl/5.16/Mojolicious/Controller.pm line 217.
--
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.