Debian Codegraph @

README

raw
1 NAME
2 Catalyst::View::Petal - Petal View Class
3
4 SYNOPSIS
5 # use the helper
6 create.pl view Petal Petal
7
8 # lib/MyApp/View/Petal.pm
9 package MyApp::View::Petal;
10
11 use base 'Catalyst::View::Petal';
12
13 __PACKAGE__->config(
14 input => 'XML',
15 output => 'XML',
16 error_on_undef_var => 0
17 );
18
19 1;
20
21 # Meanwhile, maybe in an 'end' action
22 $c->forward('MyApp::View::Petal');
23
24 DESCRIPTION
25 This is the "Petal" view class. Your subclass should inherit from this
26 class.
27
28 METHODS
29 process
30 Renders the template specified in "$c->stash->{template}" or
31 "$c->request->match". Template variables are set up from the
32 contents of "$c->stash", augmented with "base" set to
33 "$c->req->base", "c" to $c and "name" to "$c->config->{name}".
34 Output is stored in "$c->response->body".
35
36 config
37 This allows your view subclass to pass additional settings to the
38 Petal config hash.
39
40 SEE ALSO
41 Petal, Catalyst, Catalyst::Base.
42
43 AUTHOR
44 Christian Hansen, "[email protected]"
45
46 COPYRIGHT
47 This program is free software, you can redistribute it and/or modify it
48 under the same terms as Perl itself.
49