2 Catalyst::View::TT - Template View Class
9 package MyApp::View::TT;
11 use base 'Catalyst::View::TT';
13 __PACKAGE__->config->{DEBUG} = 'all';
17 $c->forward('MyApp::View::TT');
20 This is the "Template" view class. Your subclass should inherit from
21 this class. If you want to override TT config settings, you can do it
22 there by setting __PACKAGE__->config->{OPTION} as shown in the synopsis.
23 Of interest might be EVAL_PERL, which is disabled by default, and
24 LOAD_TEMPLATES, which is set to use the provider.
26 If you want to use EVAL perl, add something like this:
28 __PACKAGE__->config->{EVAL_PERL} = 1;
29 __PACKAGE__->config->{LOAD_TEMPLATES} = undef;
33 Renders the template specified in $c->stash->{template} or
34 $c->request->match to $c->response->output.
37 This allows your view subclass to pass additional settings to the TT
44 Sebastian Riedel, "sri@cpan.org" Marcus Ramberg
47 This program is free software, you can redistribute it and/or modify it
48 under the same terms as Perl itself.