X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView.pm;h=d9e884fa21290b3ac058405e004a9ed9e1635b12;hb=76ddf86be66ed259d24226618a1d357e6f606fa1;hp=77597a6da2e3077401116622eb8b81b5a99038a7;hpb=5ee249f25d549a71fdb509af9d99151f62cddab8;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/View.pm b/lib/Catalyst/View.pm index 77597a6..d9e884f 100644 --- a/lib/Catalyst/View.pm +++ b/lib/Catalyst/View.pm @@ -9,15 +9,33 @@ Catalyst::View - Catalyst View base class =head1 SYNOPSIS -See L. + package Catalyst::View::Homebrew; + + use base qw/Catalyst::View/; + + sub process { + # template processing goes here. + } =head1 DESCRIPTION -Catalyst View base class. +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 L.) + +=head1 METHODS + +Implements the same methods as other Catalyst components, see +L =head1 AUTHOR Sebastian Riedel, C +Marcus Ramberg, C =head1 COPYRIGHT