[Catalyst] :Template() Attribute

Perrin Harkins perrin at elem.com
Fri Jun 15 16:23:31 GMT 2007


On 6/15/07, Christopher H. Laco <claco at chrislaco.com> wrote:
> Imho, :Template('foo') is a lot more elegant than $c->stash->{'template'}

The trouble with putting things in attributes instead is that the sub
declarations start to get really long and ugly, and you can't wrap
attributes to another line.  Readability of attributes in general is
pretty poor, IMO.

- Perrin



More information about the Catalyst mailing list