私はmojolicious::liteを学んでいます。
ルーターでは、パラメーターをコントローラーに委譲し、次のコードを使用してください:
get '/hello/:name' => sub {
my $self = shift;
ControllerTest::hello($self);
};
たとえば、次のような簡単な方法があります。
get '/hello/:name' => ControllerTest::hello( shift ); #this code not work
ありがとう。