line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Helper::View::Mason; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1108
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Catalyst::Helper::View::Mason - Helper for Mason Views |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 SYNOPSIS |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
script/create.pl view Mason Mason |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Helper for Mason Views. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head2 METHODS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head3 mk_compclass |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub mk_compclass { |
25
|
0
|
|
|
0
|
1
|
|
my ($self, $helper) = @_; |
26
|
0
|
|
|
|
|
|
my $file = $helper->{file}; |
27
|
0
|
|
|
|
|
|
$helper->render_file('compclass', $file); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SEE ALSO |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>, |
33
|
|
|
|
|
|
|
L<Catalyst::Response>, L<Catalyst::Helper> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Andres Kievsky |
38
|
|
|
|
|
|
|
Sebastian Riedel, C<sri@oook.de> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 LICENSE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This library 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; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__DATA__ |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__compclass__ |
52
|
|
|
|
|
|
|
package [% class %]; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
use strict; |
55
|
|
|
|
|
|
|
use base 'Catalyst::View::Mason'; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
__PACKAGE__->config(use_match => 0); |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 NAME |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
[% class %] - Mason View Component |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SYNOPSIS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Very simple to use |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 DESCRIPTION |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Very nice component. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Clever guy |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 LICENSE |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify it under |
78
|
|
|
|
|
|
|
the same terms as perl itself. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |