1 package Catalyst::View;
6 extends qw/Catalyst::Component/;
10 Catalyst::View - Catalyst View base class
14 package Catalyst::View::Homebrew;
16 use base qw/Catalyst::View/;
19 # template processing goes here.
24 This is the Catalyst View base class. It's meant to be used as
25 a base class by Catalyst views.
27 As a convention, views are expected to read template names from
28 $c->stash->{template}, and put the output into $c->res->body.
29 Some views default to render a template named after the dispatched
30 action's private name. (See L<Catalyst::Action>.)
34 Implements the same methods as other Catalyst components, see
35 L<Catalyst::Component>
39 gives an error message about direct use.
45 Catalyst::Exception->throw( message => ( ref $_[0] || $_[0] ).
46 " directly inherits from Catalyst::View. You need to\n".
47 " inherit from a subclass like Catalyst::View::TT instead.\n" );
51 =head2 $c->merge_hash_config( $hashref, $hashref )
53 Merges two hashes together recursively, giving right-hand precedence.
59 Sebastian Riedel, C<sri@oook.de>
60 Marcus Ramberg, C<mramberg@cpan.org>
64 This program is free software, you can redistribute it and/or modify it under
65 the same terms as Perl itself.
70 #__PACKAGE__->meta->make_immutable();