1Email::MIME::Kit::RendeUrseerr::CToensttrRiebnudtEeemrdaeirPl(e:3r:)lMIDMoEc:u:mKeintt:a:tRieonnderer::TestRenderer(3)
2
3
4

NAME

6       Email::MIME::Kit::Renderer::TestRenderer - extremely simple renderer
7       for testing purposes only
8

VERSION

10       version 3.000007
11

DESCRIPTION

13       The test renderer is like a version of Template Toolkit 2 that has had
14       a crayon shoved up its nose and into its brain.  It can only do a very
15       few things, but it does them well enough to test simple kits.
16
17       Given the following template:
18
19         This will say "I love pie": [% actor %] [% m_obj.verb() %] [% z_by("me") %]
20
21       ...and the following set of variables:
22
23         {
24           actor => 'I',
25           m_obj => $object_whose_verb_method_returns_love,
26           z_by  => sub { 'me' },
27         }
28
29       ..then it will be a true statement.
30
31       In method calls, the parens are not optional.  Anything between them
32       (or between the parens in a coderef call) is evaluated like perl code.
33       For example, this will actually get the OS:
34
35         [% z_by($^O) %]
36

PERL VERSION

38       This library should run on perls released even a long time ago.  It
39       should work on any version of perl released in the last five years.
40
41       Although it may work on older versions of perl, no guarantee is made
42       that the minimum required version will not be increased.  The version
43       may be increased for any reason, and there is no promise that patches
44       will be accepted to lower the minimum required perl.
45

WARNING

47       Seriously, this is horrible code.  If you want, look at it.  It's swell
48       for testing simple things, but if you use this for real mkits, you're
49       going to be upset by something horrible soon.
50

AUTHOR

52       Ricardo Signes <rjbs@cpan.org>
53
55       This software is copyright (c) 2023 by Ricardo Signes.
56
57       This is free software; you can redistribute it and/or modify it under
58       the same terms as the Perl 5 programming language system itself.
59
60
61
62perl v5.36.0                      20E2m3a-i0l1:-:2M0IME::Kit::Renderer::TestRenderer(3)
Impressum