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

Thomas L. Shinnick tshinnic at io.com
Wed Dec 6 01:00:49 GMT 2006


At 05:56 PM 12/5/2006, Sebastian Riedel wrote:
>Hermida, Leandro wrote:
>>I thought the tutorial was absolutely great - things that I had in 
>>the past spent hours developing myself are practically plug and 
>>play and it gives you a nice taste of how powerful Catalyst is!
>>
>>One question about the tutorial though, doesn't building 
>>"presentation" material inside the controller using HTML::Widget so 
>>of break the MVC concept?  After reading the Catalyst intro and 
>>about MVC I thought I wouldn't be writing anything HTML or 
>>presentation specific in the M or the C parts, only in the V which 
>>are the TT files.  Do I have something wrong in my thinking?
>
>Nope, you're right, the form declarations belong to the view, 
>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. :)
>
>--
>sebastian

Eep!  Could you expand on your statement?  Would you still use it for 
input validation?  Only? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20061205/05146a75/attachment.htm


More information about the Catalyst mailing list