Man pages sections > man3 > Catalyst::View

Catalyst::View - Catalyst View base class

Catalyst::View(3pm) User Contributed Perl Documentation Catalyst::View(3pm)


Catalyst::View - Catalyst View base class


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


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 Catalyst::Action.)


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


gives an error message about direct use.


Catalyst Contributors, see This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
2017-07-11 perl v5.24.1