fixed ordering of stash.
[catagits/Catalyst-View-TT.git] / README
1 NAME
2     Catalyst::View::TT - Template View Class
3
4 SYNOPSIS
5         # use the helper
6         create.pl view TT TT
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
19 DESCRIPTION
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.
25
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
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
40 SEE ALSO
41     Catalyst.
42
43 AUTHOR
44     Sebastian Riedel, "sri@cpan.org" Marcus Ramberg
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