From: Karen Etheridge Date: Wed, 12 Aug 2015 16:06:40 +0000 (-0700) Subject: Catalyst::Plugin::Email is deprecated - stop mentioning it X-Git-Tag: v0.43~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-TT.git;a=commitdiff_plain;h=161400d1c231263767c86fe9ce1c5a5b31981728 Catalyst::Plugin::Email is deprecated - stop mentioning it --- diff --git a/Changes b/Changes index 20ed68e..e9f84cd 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::View::TT. + - remove mention of deprecated Catalyst::Plugin::Email in + documentation + 0.42 2014-12-29 - Fixes to test cases to be compatible with Catalyst v5.90080 - Added a Unicode test designed to check new Catalyst function diff --git a/lib/Catalyst/View/TT.pm b/lib/Catalyst/View/TT.pm index db72b25..c6f0fcc 100644 --- a/lib/Catalyst/View/TT.pm +++ b/lib/Catalyst/View/TT.pm @@ -537,24 +537,7 @@ The output generated by the template is stored in C<< $c->response->body >>. If you wish to use the output of a template for some other purpose than displaying in the response, e.g. for sending an email, this is possible using -L and the L method: - - sub send_email : Local { - my ($self, $c) = @_; - - $c->email( - header => [ - To => 'me@localhost', - Subject => 'A TT Email', - ], - body => $c->view('Web')->render($c, 'email.tt', { - additional_template_paths => [ $c->config->{root} . '/email_templates'], - email_tmpl_param1 => 'foo' - } - ), - ); - # Redirect or display a message - } +other views, such as L. =head2 TEMPLATE PROFILING