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.000006
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

WARNING

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

AUTHOR

43       Ricardo Signes <rjbs@cpan.org>
44
46       This software is copyright (c) 2018 by Ricardo Signes.
47
48       This is free software; you can redistribute it and/or modify it under
49       the same terms as the Perl 5 programming language system itself.
50
51
52
53perl v5.30.1                      20E2m0a-i0l1:-:2M9IME::Kit::Renderer::TestRenderer(3)
Impressum