[Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

John Siracusa siracusa at mindspring.com
Wed Dec 6 01:24:29 GMT 2006


On 12/5/06 7:51 PM, Nilson Santos Figueiredo Junior wrote:
> On 12/5/06, Sebastian Riedel <sri-lists at oook.de> wrote:
>> HTML::Widget was an experiment and i wouldn't suggest using it anymore.
>> There should be a TT plugin imo similar to the CGI.pm one, just sane. :)
> 
> IMO, the real thing that's missing is Perl code layer between the
> controller and the template, i.e., the view should be composed by code
> + templates. If you don't do it this way you need to either a) put
> code which belongs to the view inside your controller, b) write large
> amounts of code in your templates using and reap *all* the great
> benefits that come along with large chunks of code written in TT
> language or c) write a TT plugin.

What would this "Perl code layer" be responsible for doing?  Can you give
some examples?

-John





More information about the Catalyst mailing list