Kit/Role/Renderer.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Kit/Role/ManifestReader.pm ↑ Summary Kit/Role/Validator.pm »
1 package Email::MIME::Kit::Role::Renderer 3.000007;
2 # ABSTRACT: things that render templates into contents
3  
4 4 ▶use v5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 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 4 requires 'render';
21  
22 4 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 4 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.000007
38  
39 =head1 PERL VERSION
40  
41 This library should run on perls released even a long time ago. It should work
42 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 lower
47 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 <rjbs@cpan.org>
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
« Kit/Role/ManifestReader.pm ↑ Summary Kit/Role/Validator.pm »