X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FTT.pm;h=c6f0fccd86104e66293f8e86a51550d7a0eb3562;hb=161400d1c231263767c86fe9ce1c5a5b31981728;hp=db72b25ef68b2987498d4fef7cb4047a293475fd;hpb=3758cdf99314353b50f1ed1f5920d370d9412264;p=catagits%2FCatalyst-View-TT.git 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