Adding the stash tthe render call of TT. Right now this requires TT, but will change...
J. Shirley [Fri, 1 Jun 2007 00:40:52 +0000 (00:40 +0000)]
lib/Catalyst/View/Email/Template.pm

index 5a35783..2ee3080 100644 (file)
@@ -123,7 +123,7 @@ sub process {
             $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;