[Catalyst] Mason view hackers (and other views), PING
mreece at vinq.com
mreece at vinq.com
Sat May 12 23:51:00 GMT 2007
> On Sat, 12 May 2007, Matt S Trout wrote:
> [...]
>>> call for the view. The default for this in the Mason view seems to be
>>> the
>>> same as that in the TT2 view, which is to use $c->req->match. That
>>> seems
>>> reasonable to me.
>>
>> That's one of the things that needs to change, the standard for views is
>> now $c->action.
>
> Easy enough to fix.
>
>
> -dave
fwiw, this is what i use as my default:
$c->stash->{template} = $c->action->namespace . '/'
. $c->action->name . '.html';
but i don't know how well that plays with chained actions.
More information about the Catalyst
mailing list