line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Email::MIME::Kit::Role::Renderer 3.000008; |
2
|
|
|
|
|
|
|
# ABSTRACT: things that render templates into contents |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
2528
|
use v5.20.0; |
|
4
|
|
|
|
|
14
|
|
5
|
4
|
|
|
4
|
|
536
|
use Moose::Role; |
|
4
|
|
|
|
|
5082
|
|
|
4
|
|
|
|
|
24
|
|
6
|
|
|
|
|
|
|
with 'Email::MIME::Kit::Role::Component'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
#pod =head1 IMPLEMENTING |
9
|
|
|
|
|
|
|
#pod |
10
|
|
|
|
|
|
|
#pod This role also performs L<Email::MIME::Kit::Role::Component>. |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod Classes implementing this role must provide a C<render> method, which is |
13
|
|
|
|
|
|
|
#pod expected to turn a template and arguments into rendered output. The method is |
14
|
|
|
|
|
|
|
#pod used like this: |
15
|
|
|
|
|
|
|
#pod |
16
|
|
|
|
|
|
|
#pod my $output_ref = $renderer->render($input_ref, \%arg); |
17
|
|
|
|
|
|
|
#pod |
18
|
|
|
|
|
|
|
#pod =cut |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
requires 'render'; |
21
|
|
|
|
|
|
|
|
22
|
4
|
|
|
4
|
|
14460
|
no Moose::Role; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
19
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Email::MIME::Kit::Role::Renderer - things that render templates into contents |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 3.000008 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 PERL VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This library should run on perls released even a long time ago. It should |
42
|
|
|
|
|
|
|
work on any version of perl released in the last five years. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
45
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
46
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to |
47
|
|
|
|
|
|
|
lower the minimum required perl. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 IMPLEMENTING |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This role also performs L<Email::MIME::Kit::Role::Component>. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Classes implementing this role must provide a C<render> method, which is |
54
|
|
|
|
|
|
|
expected to turn a template and arguments into rendered output. The method is |
55
|
|
|
|
|
|
|
used like this: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
my $output_ref = $renderer->render($input_ref, \%arg); |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHOR |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Ricardo Signes <cpan@semiotic.systems> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo Signes. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
68
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |