added model and controller
[catagits/CatalystX-Declare.git] / t / lib / TestApp / View / TestView.pm
1 use CatalystX::Declare;
2
3 view TestApp::View::TestView
4     with TestApp::ViewRole::TestRole {
5
6     method render (Object $ctx) {
7         return 'view rendered';
8     }
9
10     method process (Object $ctx) {
11         $ctx->response->body( $self->render($ctx) );
12     }
13 }