File: README

package info (click to toggle)
libcatalyst-view-petal-perl 0.03-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 216 kB
  • sloc: perl: 1,802; makefile: 13
file content (49 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
NAME
    Catalyst::View::Petal - Petal View Class

SYNOPSIS
        # use the helper
        create.pl view Petal Petal

        # lib/MyApp/View/Petal.pm
        package MyApp::View::Petal;

        use base 'Catalyst::View::Petal';

        __PACKAGE__->config(
            input              => 'XML',
            output             => 'XML',
            error_on_undef_var => 0
        );

        1;

        # Meanwhile, maybe in an 'end' action
        $c->forward('MyApp::View::Petal');

DESCRIPTION
    This is the "Petal" view class. Your subclass should inherit from this
    class.

  METHODS
    process
        Renders the template specified in "$c->stash->{template}" or
        "$c->request->match". Template variables are set up from the
        contents of "$c->stash", augmented with "base" set to
        "$c->req->base", "c" to $c and "name" to "$c->config->{name}".
        Output is stored in "$c->response->body".

    config
        This allows your view subclass to pass additional settings to the
        Petal config hash.

SEE ALSO
    Petal, Catalyst, Catalyst::Base.

AUTHOR
    Christian Hansen, "ch@ngmedia.com"

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