[Catalyst-commits] r6452 -
trunk/Catalyst-View-Email/lib/Catalyst/View/Email
jshirley at dev.catalyst.perl.org
jshirley at dev.catalyst.perl.org
Fri Jun 1 01:40:53 GMT 2007
Author: jshirley
Date: 2007-06-01 01:40:52 +0100 (Fri, 01 Jun 2007)
New Revision: 6452
Modified:
trunk/Catalyst-View-Email/lib/Catalyst/View/Email/Template.pm
Log:
Adding the stash tthe render call of TT. Right now this requires TT, but will change soon.
Modified: trunk/Catalyst-View-Email/lib/Catalyst/View/Email/Template.pm
===================================================================
--- trunk/Catalyst-View-Email/lib/Catalyst/View/Email/Template.pm 2007-06-01 00:40:39 UTC (rev 6451)
+++ trunk/Catalyst-View-Email/lib/Catalyst/View/Email/Template.pm 2007-06-01 00:40:52 UTC (rev 6452)
@@ -123,7 +123,7 @@
$content_type = 'text/plain';
}
my $output = $default_view->render( $c, $template,
- { content_type => $content_type });
+ { content_type => $content_type, %{$c->stash} });
# Got a ref, not a scalar. An error!
if ( ref $output ) {
croak $output->can("as_string") ? $output->as_string : $output;
More information about the Catalyst-commits
mailing list