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

Matt S Trout dbix-class at trout.me.uk
Wed Dec 6 13:06:46 GMT 2006


On 6 Dec 2006, at 00:51, 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.

Reaction calls these ViewPort objects :)

-- 
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +





More information about the Catalyst mailing list