line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
1
|
|
|
1
|
|
1423
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
122
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.46'; |
5
|
|
|
|
|
|
|
$VERSION =~ tr/_//d; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Catalyst::Helper::View::TT - Helper for TT Views |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 SYNOPSIS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
script/create.pl view HTML TT |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Helper for TT Views. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 METHODS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head3 mk_compclass |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my ( $self, $helper ) = @_; |
26
|
|
|
|
|
|
|
my $file = $helper->{file}; |
27
|
0
|
|
|
0
|
1
|
|
$helper->render_file( 'compclass', $file ); |
28
|
0
|
|
|
|
|
|
} |
29
|
0
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
Sebastian Riedel, C<sri@oook.de> |
38
|
|
|
|
|
|
|
Marcus Ramberg, C<mramberg@cpan.org> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 LICENSE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify |
43
|
|
|
|
|
|
|
it under the same terms as perl itself. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__compclass__ |
51
|
|
|
|
|
|
|
package [% class %]; |
52
|
|
|
|
|
|
|
use Moose; |
53
|
|
|
|
|
|
|
use namespace::autoclean; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
extends 'Catalyst::View::TT'; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
__PACKAGE__->config( |
58
|
|
|
|
|
|
|
TEMPLATE_EXTENSION => '.tt', |
59
|
|
|
|
|
|
|
render_die => 1, |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 NAME |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
[% class %] - TT View for [% app %] |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 DESCRIPTION |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
TT View for [% app %]. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SEE ALSO |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L<[% app %]> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 AUTHOR |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
[% author %] |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 LICENSE |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This library is free software. You can redistribute it and/or modify |
81
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
1; |