[Catalyst] The View helper

Zbigniew Lukasiak zzbbyy at gmail.com
Tue Aug 16 16:54:47 CEST 2005


I was watching the catalyst movie and I think there is one thing that
could be made simpler for the Catalyst newbies.

The creation of the code for the TT view could be done by the helper.
The catalyst.pl script could leave a stub for the view helper something like

= item end
= cut

And then the view helper could just substitute in this place:

=item end
=cut

sub end : Private {
    my ( $self, $c ) = @_;
    $c->forward($AppName . '::V::TT') unless $c->res->output;
}

-- Zbyszek



More information about the Catalyst mailing list