Catalyst::View - Catalyst View base class


NAME

Catalyst::View - Catalyst View base class


SYNOPSIS

    package Catalyst::View::Homebrew;
    use base qw/Catalyst::View/;
    sub process {
    # template processing goes here.
    }


DESCRIPTION

This is the Catalyst View base class. It's meant to be used as a base class by Catalyst views.

As a convention, views are expected to read template names from $c->stash->{template}, and put the output into $c->res->body. Some views default to render a template named after the dispatched action's private name. (See the Catalyst::Action manpage.)


METHODS

Implements the same methods as other Catalyst components, see the Catalyst::Component manpage

process

gives an error message about direct use.

$c->merge_hash_config( $hashref, $hashref )

Merges two hashes together recursively, giving right-hand precedence.


AUTHOR

Sebastian Riedel, sri@oook.de Marcus Ramberg, mramberg@cpan.org


COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

 Catalyst::View - Catalyst View base class