Email::MIME::Kit::Renderer::MicroMason

Render parts of your mail with Text::MicroMason
Download

Email::MIME::Kit::Renderer::MicroMason Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Mark Grimes
  • Publisher web site:
  • http://search.cpan.org/~mgrimes/

Email::MIME::Kit::Renderer::MicroMason Tags


Email::MIME::Kit::Renderer::MicroMason Description

Render parts of your mail with Text::MicroMason This renderer for Email::MIME::Kit uses Text::MicroMason to enable you to write your mkits using basic Mason syntax. See Text::MicroMason::HTMLMason for details on the syntax.Email::MIME::Kit::Renderer::MicroMason is based on Text::MicroMason rather than the full blown HTML::Mason because HTML::Mason is focused on directories and files and Email::MIME::Kit prefers to work with strings. Text::MicroMason accommodates this and is a bit smaller than it's big brother.SYNOPSISTo use MicroMason in your mkit use something like: { "renderer": "MicroMason", "header": , "alternatives": } ] }Then in your email templates (body.txt and body.html) you can do: < %args > $recruit $cid_for < /%args > < & "../includes/header.msn", %ARGS & > < p > Dear < % $recruit->name % >, < /p > < p > Welcome to WY Corp. < /p > < & "../includes/footer.msn", %ARGS & >EMK::Renderer::MicroMason will try to make any components included with relative to the mkit directory. Requirements: · Perl


Email::MIME::Kit::Renderer::MicroMason Related Software