1 use CatalystX::Declare;
3 # nothing special here, so it's just normal MooseX::Declare syntax
4 view MyApp::Web::View::Hello {
6 # the process method is the standard method that is forwarded to
7 method process (Object $ctx) {
12 '<html><body><h1>Hello View: %s</h1></body></html>',
13 ($ctx->stash->{hello} || 'Hello World!'),