=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};