line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Moose; |
3
|
84
|
|
|
84
|
|
59947
|
extends qw/Catalyst::Component/; |
|
84
|
|
|
|
|
335291
|
|
|
84
|
|
|
|
|
617
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Catalyst::View - Catalyst View base class |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Catalyst::View::Homebrew; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use base qw/Catalyst::View/; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub process { |
16
|
|
|
|
|
|
|
# template processing goes here. |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 DESCRIPTION |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
This is the Catalyst View base class. It's meant to be used as |
22
|
|
|
|
|
|
|
a base class by Catalyst views. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
As a convention, views are expected to read template names from |
25
|
|
|
|
|
|
|
$c->stash->{template}, and put the output into $c->res->body. |
26
|
|
|
|
|
|
|
Some views default to render a template named after the dispatched |
27
|
|
|
|
|
|
|
action's private name. (See L<Catalyst::Action>.) |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 METHODS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Implements the same methods as other Catalyst components, see |
32
|
|
|
|
|
|
|
L<Catalyst::Component> |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 process |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
gives an error message about direct use. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Catalyst::Exception->throw( message => ( ref $_[0] || $_[0] ). |
42
|
|
|
|
|
|
|
" directly inherits from Catalyst::View. You need to\n". |
43
|
0
|
|
0
|
0
|
1
|
|
" inherit from a subclass like Catalyst::View::TT instead.\n" ); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHORS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Catalyst Contributors, see Catalyst.pm |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This library is free software. You can redistribute it and/or modify it under |
54
|
|
|
|
|
|
|
the same terms as Perl itself. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
no Moose; |
59
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
60
|
84
|
|
|
84
|
|
577939
|
|
|
84
|
|
|
|
|
244
|
|
|
84
|
|
|
|
|
482
|
|
61
|
|
|
|
|
|
|
1; |