use base qw/ Catalyst::View::Email /;
-our $VERSION = '0.10';
+our $VERSION = '0.11';
=head1 NAME
from => 'no-reply@foobar.com',
subject => 'I am a Catalyst generated email',
template => 'test.tt',
+ content_type => 'multipart/alternative'
};
$c->forward( $c->view('Email::Template') );
=cut
sub process {
- my ( $self, $c ) = @_;
+ my ( $self, $c, @args ) = @_;
# don't validate template_prefix
my $stash_key = $self->{stash_key};
- croak "No template specified for rendering"
+ # Go upstream if we don't have a template
+ $self->next::method($c, @args)
unless $c->stash->{$stash_key}->{template}
or $c->stash->{$stash_key}->{templates};