line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Helper::View::HTML::Mason; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:FLORA'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Helper for L<Catalyst::View::HTML::Mason> views |
4
|
|
|
|
|
|
|
$Catalyst::Helper::View::HTML::Mason::VERSION = '0.19'; |
5
|
1
|
|
|
1
|
|
597
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
106
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub mk_compclass { |
10
|
0
|
|
|
0
|
1
|
|
my ($self, $helper) = @_; |
11
|
0
|
|
|
|
|
|
my $file = $helper->{file}; |
12
|
0
|
|
|
|
|
|
(my $template = do { local $/; <DATA> }) =~ s/^\s\s//g; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
$helper->render_file_contents($template, $file); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Catalyst::Helper::View::HTML::Mason - Helper for L<Catalyst::View::HTML::Mason> views |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SYNOPSIS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
script/create.pl view Mason HTML::Mason |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 METHODS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 mk_compclass |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SEE ALSO |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
L<Catalyst::View::HTML::Mason>, L<Catalyst::Helper> |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHORS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=over 4 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item * |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Florian Ragwitz <rafl@debian.org> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Sebastian Willert <willert@cpan.org> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Robert Buels <rbuels@cpan.org> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=back |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Florian Ragwitz. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
62
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
__DATA__ |
67
|
|
|
|
|
|
|
package [% class %]; |
68
|
|
|
|
|
|
|
use Moose; |
69
|
|
|
|
|
|
|
extends 'Catalyst::View::HTML::Mason'; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
## uncomment below to pass default configuration options to this view |
72
|
|
|
|
|
|
|
# __PACKAGE__->config( ); |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 NAME |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
[% class %] - Mason View Component for [% app %] |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 DESCRIPTION |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Mason View Component for [% app %] |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 SEE ALSO |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
L<[% app %]>, L<Catalyst::View::HTML::Mason>, L<HTML::Mason> |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 AUTHOR |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
[% author %] |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 LICENSE |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify |
93
|
|
|
|
|
|
|
it under the same terms as perl itself. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
1; |