[Catalyst] :Template() Attribute

Christopher H. Laco claco at chrislaco.com
Fri Jun 15 16:26:33 GMT 2007

Richard Jones wrote:
> Christopher H. Laco wrote:
>> Imho, :Template('foo') is a lot more elegant than $c->stash->{'template'}
>>   =

> What if we are already doing:
> sub foo : Local Form('/path/to/file') { }
> =

> Does it still work?
> =

Wel does Form('/path/to/file') do?
Is that /path/to/form/file ?

sub foo : Local Form('/path/to/file') Template('foo.tt') { }

Those just set defaults.
If anything alters stash->{template} before View->process is called,
that is used, not the default for Template()

So, I'd think the two attributes together have no interaction...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070615/563a=

More information about the Catalyst mailing list