Octavian Râşniţă > Mail-Builder-Simple > Mail::Builder::Simple::TT

Download:
Mail-Builder-Simple-0.16.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Mail::Builder::Simple::TT - Template-Toolkit plugin for Mail::Builder::Simple

VERSION ^

Version 0.03

SYNOPSIS ^

 my $template = Mail::Builder::Simple::TT->new($args, $vars);
 $template->process($template, $source);

DESCRIPTION ^

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.

SUBROUTINES/METHODS ^

new

new() is the class constructor. It accepts 2 parameters: $args and $vars.

$args is a hashref with the options for TT. $vars is the hashref with the template variables.

process

process() processes the template. It accepts 2 parameters: $template and $source.

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

DIAGNOSTICS ^

CONFIGURATION AND ENVIRONMENT ^

This module doesn't require any configuration.

DEPENDENCIES ^

Template-Toolkit, Cwd, Exception::Died

INCOMPATIBILITIES ^

Not known incompatibilities.

BUGS AND LIMITATIONS ^

Not known bugs. If you find some, please announce.

SEE ALSO ^

Mail::Builder::Simple, Template-Toolkit

AUTHOR ^

Octavian Rasnita <orasnita@gmail.com>

LICENSE AND COPYRIGHT ^

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

syntax highlighting: