I am learning mojolicious::lite.
In router, delegate the parameter to controller, use this code ok:
get '/hello/:name' => sub {
my $self = shift;
ControllerTest::hello($self);
};
Should there any short hand method, eg:
get '/hello/:name' => ControllerTest::hello( shift ); #this code not work
thanks.