| (Top) < C::A and MVC | Using Templates > |
Having the application spit out all the HTML output breaks the MVC separation.
Say, you need to change the <title>:
sub start {
# ...
$output .= $query->start_html(-title =>
"Welcome to St. Pat's Drink-o-Mat!");
return $output;
} |
Should be able to do this without touching your application code.
Especially if it's an HTML designer who'll be doing this.
|
CGI::Application (v.2.0) |
23 |