action stream is final {
$ctx->response->body($ctx->action->reverse);
}
+
+ action param (Int $x) {
+ $ctx->stash(param_x => $x);
+ }
+
+ under param {
+
+ final action road (Int $y) {
+ $ctx->response->body($ctx->stash->{param_x} + $y);
+ }
+ }
}
}
}
final action inline_class under base {
$ctx->response->body( TestApp::Controller::Foo::Messenger->new(message => 'Hello')->format );
}
+
+
+ #
+ # validation test
+ #
+
+ final action wants_integer (Int $x) under base {
+ $ctx->response->body($x);
+ }
+
}