Email::MIME::Kit::Renderer::TestRenderer(3pm)

Email::MIME::Kit::Renderer::TestRenderer3pm

Extremely simple renderer for testing purposes only

Version

version 3.000008

Overview

The test renderer is like a version of Template Toolkit 2 that has had a crayon shoved up its nose and into its brain. It can only do a very few things, but it does them well enough to test simple kits.

Given the following template:

  This will say "I love pie": [% actor %] [% m_obj.verb() %] [% z_by("me") %]

...and the following set of variables:

  {
    actor => 'I',
    m_obj => $object_whose_verb_method_returns_love,
    z_by  => sub { 'me' },
  }

..then it will be a true statement.

In method calls, the parens are not optional. Anything between them (or between the parens in a coderef call) is evaluated like perl code. For example, this will actually get the OS:

  [% z_by($^O) %]

Perl version

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

Warning

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

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Ricardo Signes <[email protected]>

From libemail-mime-kit-perl 3.000008-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.