Maybe I am confused about MVC, but wouldn't you want the view to decide how to present what is sent to it by the controller, and hence have the controller
handle this?

I don't know if it's you that's confused or me that's confused ;-) I can see your point of view though.

From my point of view, the "View" is handled by a designer. The designer
knows about HTML, CSS, JS, and enough about TT to get them going. They typically wouldn't know anything about perl.

When the designer assembles the pages he decides which of the possible common elements is going on each page and will include the relevant sub-templates. It makes sense for me to be able to delegate control of that to the designer by just letting them include what they like without having to be involved every time something changes.

As an example during the summer the designer might take the football league tables off the site in favour of something else. In my Controller though the code that generates that data will still be run even though it's now redundant.

Carl



_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to