[Catalyst] :Template() Attribute
Bill Moseley
moseley at hank.org
Fri Jun 15 15:27:34 GMT 2007
On Fri, Jun 15, 2007 at 09:58:06AM -0400, Christopher H. Laco wrote:
> > sub edit : Local : Template( 'edit.tt' ) {
> > my ( $self, $c ) = @_
> > ...
> > }
> >
> > instead of:
> >
> > sub edit : Local {
> > my ( $self, $c ) = @_
> > $c->stash->{template} = 'edit.tt';
> > ...
> > }
> >
> Yes. You can use both. Setting stash template always overrides the
> default Template() attribute for that current action via ||=
Maybe I missed this in your first email, but what's the problem you
are trying to solve?
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list