The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
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
                '<html><body><h1>Hello View: %s</h1></body></html>', 
                ($ctx->stash->{hello} || 'Hello World!'),
        );
    }
}