1 use CatalystX::Declare;
3 controller_role TestApp::ControllerRole::DynamicFinal (
7 ArrayRef[Str] :$counters = []
10 method set_body (Object $ctx) {
11 $ctx->response->body($body);
16 final action msg under $base { $self->set_body($ctx) }
21 action msg under $base { $self->set_body($ctx) }
24 for my $counter (@$counters) {
27 final action "count_$counter" under $base as "counter/$counter" {
28 $ctx->response->body($count++);