Commit | Line | Data |
5ee249f2 |
1 | package Catalyst::View; |
2 | |
3 | use strict; |
4 | use base qw/Catalyst::Component/; |
5 | |
6 | =head1 NAME |
7 | |
8 | Catalyst::View - Catalyst View base class |
9 | |
10 | =head1 SYNOPSIS |
11 | |
76ddf86b |
12 | package Catalyst::View::Homebrew; |
13 | |
14 | use base qw/Catalyst::View/; |
15 | |
16 | sub process { |
17 | # template processing goes here. |
18 | } |
5ee249f2 |
19 | |
20 | =head1 DESCRIPTION |
21 | |
76ddf86b |
22 | This is the Catalyst View base class. It's meant to be used as |
23 | a base class by Catalyst views. |
24 | |
25 | As a convention, views are expected to read template names from |
26 | $c->stash->{template}, and put the output into $c->res->body. |
27 | Some views default to render a template named after the dispatched |
28 | action's private name. (See L<Catalyst::Action>.) |
29 | |
30 | =head1 METHODS |
31 | |
32 | Implements the same methods as other Catalyst components, see |
33 | L<Catalyst::Component> |
5ee249f2 |
34 | |
35 | =head1 AUTHOR |
36 | |
37 | Sebastian Riedel, C<sri@oook.de> |
76ddf86b |
38 | Marcus Ramberg, C<mramberg@cpan.org> |
5ee249f2 |
39 | |
40 | =head1 COPYRIGHT |
41 | |
42 | This program is free software, you can redistribute it and/or modify it under |
43 | the same terms as Perl itself. |
44 | |
45 | =cut |
46 | |
47 | 1; |