Subject: | Default template |
If I use index, or default handlers, $c->req->match is 'foo/' or '', so
template name is foo/.msn or .msn. I think will be better to use default
name for template:
if (!$c->stash->{'template'}) {
$c->stash->{'template'} = $c->req->match;
$c->stash->{template}.='default' if $c->stash->{template}=~m|/$| ||
!$c->stash->{template};