[Catalyst] question from tutorial - does creating HTML in
a controller using HTML::Widget violate MVC?
Sebastian Riedel
sri-lists at oook.de
Tue Dec 5 23:56:52 GMT 2006
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
More information about the Catalyst
mailing list