1Catalyst::View::HTML::TUesmeprlaCtoen(t3r)ibuted Perl DoCcautmaelnytsatt:i:oVniew::HTML::Template(3)
2
3
4

NAME

6       Catalyst::View::HTML::Template - HTML::Template View Class
7

SYNOPSIS

9           # use the helper
10           create.pl view HTML::Template HTML::Template
11
12           # lib/MyApp/View/HTML/Template.pm
13           package MyApp::View::HTML::Template;
14
15           use base 'Catalyst::View::HTML::Template';
16
17           __PACKAGE__->config(
18               die_on_bad_params => 0,
19               file_cache        => 1,
20               file_cache_dir    => '/tmp/cache'
21           );
22
23           1;
24
25           # Meanwhile, maybe in an 'end' action
26           $c->forward('MyApp::View::HTML::Template');
27

DESCRIPTION

29       This is the "HTML::Template" view class. Your subclass should inherit
30       from this class.
31
32   METHODS
33       process
34           Renders the template specified in "$c->stash->{template}" or
35           "$c->request->match".  Template params are set up from the contents
36           of "$c->stash", augmented with "base" set to "$c->req->base" and
37           "name" to "$c->config->{name}".  Output is stored in
38           "$c->response->body".
39
40       render
41           Renders the given template and returns output. Template params are
42           set up either from the contents of  %$args if $args is a hashref,
43           or "$c->stash", augmented with "base" set to "$c->req->base" and
44           "name" to "$c->config->{name}".
45
46       config
47           This allows your view subclass to pass additional settings to the
48           HTML::Template config hash.
49

SEE ALSO

51       HTML::Template, Catalyst, Catalyst::Base.
52

AUTHOR

54       Christian Hansen, "ch@ngmedia.com"
55
57       This program is free software, you can redistribute it and/or modify it
58       under the same terms as Perl itself.
59
60
61
62perl v5.32.0                      2020-07-28 Catalyst::View::HTML::Template(3)
Impressum