The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Email::MIME::Kit::KitReader::SWAK - the swiss army knife of EMK kit readers

VERSION

version 1.093061

DESCRIPTION

This replaces and extends the standard (Dir) kit reader for Email::MIME::Kit, letting your kit refer to resources in locations other than the kit itself.

In your manifest (assuming it's YAML, for readability):

  ---
  kit_reader: SWAK
  attachments:
  - type: text/html
    path: template.html

  - type: text/plain
    path: /dist/Your-App/config.conf

  - type: text/plain
    path: /fs/etc/motd

This will find the first file in the kit (the absolute path prefix /kit could also be used), the second file in the File::ShareDir shared dist space for the Your-App, and the third file on the root filesystem.

SWAK may be given a fs_root option to start the contents of /fs somewhere other than root.

AUTHOR

Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.