Mail::Builder::Simple::TT - Template-Toolkit plugin for Mail::Builder::Simple
Version 0.03
my $template = Mail::Builder::Simple::TT->new($args, $vars); $template->process($template, $source);
This module shouldn't be used directly, but as a plugin of Mail::Builder::Simple for sending email messages with the body or the attachments created using Template-Toolkit.
new() is the class constructor. It accepts 2 parameters: $args and $vars.
new()
$args is a hashref with the options for TT. $vars is the hashref with the template variables.
process() processes the template. It accepts 2 parameters: $template and $source.
process()
$source can be either "file" or "scalar". If $source eq "file", $template is the name of the template file. If $source eq "scalar", $template is the scalar variable that contains the template.
This module doesn't require any configuration.
Template-Toolkit, Cwd, Exception::Died
Not known incompatibilities.
Not known bugs. If you find some, please announce.
Mail::Builder::Simple, Template-Toolkit
Octavian Rasnita <orasnita@gmail.com>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mail::Builder::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Builder::Simple
CPAN shell
perl -MCPAN -e shell install Mail::Builder::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.