use CatalystX::Declare; # nothing special here, so it's just normal MooseX::Declare syntax view MyApp::Web::View::Hello { # the process method is the standard method that is forwarded to method process (Object $ctx) { # render something $ctx->response->body( sprintf '

Hello View: %s

', ($ctx->stash->{hello} || 'Hello World!'), ); } }