fixed the bugs produced by draven and the_jester ;)
[catagits/Catalyst-View-TT.git] / README
CommitLineData
8077080c 1NAME
2 Catalyst::View::TT - Template View Class
3
4SYNOPSIS
5 # use the helper
caa61517 6 create.pl view TT TT
8077080c 7
8 # lib/MyApp/View/TT.pm
9 package MyApp::View::TT;
10
11 use base 'Catalyst::View::TT';
12
13 __PACKAGE__->config->{DEBUG} = 'all';
14
15 1;
16
17 $c->forward('MyApp::View::TT');
18
19DESCRIPTION
caa61517 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.
8077080c 25
caa61517 26 If you want to use EVAL perl, add something like this:
27
28 __PACKAGE__->config->{EVAL_PERL} = 1;
29 __PACKAGE__->config->{LOAD_TEMPLATES} = undef;
30
31 METHODS
8077080c 32 process
33 Renders the template specified in $c->stash->{template} or
34 $c->request->match to $c->response->output.
35
36 config
37 This allows your view subclass to pass additional settings to the TT
38 config hash.
39
40SEE ALSO
41 Catalyst.
42
43AUTHOR
44 Sebastian Riedel, "sri@cpan.org" Marcus Ramberg
45
46COPYRIGHT
47 This program is free software, you can redistribute it and/or modify it
48 under the same terms as Perl itself.
49