Setting the Default Template

To achieve this, add the following to your controller:

sub auto : Private {
    my ($self$c) = @_;
    $c->stash(template => ''if ($c->controller eq $self);

Change to your default template file and you're done. Also note that once you have set this up, you can still set the template in actions as usual using:

$c->stash->{template} = '';
My tags:
Popular tags:
Powered by Catalyst
Powered by MojoMojo Hosted by Shadowcat - Managed by Nordaaker