source: trunk/lib/Vote/View/TT.pm @ 194

Last change on this file since 194 was 194, checked in by nanardon, 15 years ago
  • clearly separate Catalyst Model and Vote::DB module, making test faster
File size: 764 bytes
Line 
1package Vote::View::TT;
2
3use strict;
4use base 'Catalyst::View::TT';
5use Vote::DB;
6
7__PACKAGE__->config(
8    TEMPLATE_EXTENSION => '.tt',
9    INCLUDE_PATH => Vote->path_to( 'root', 'templates' ),
10    PRE_PROCESS => 'includes/header.tt',
11    POST_PROCESS => 'includes/footer.tt',
12    PLUGIN_BASE => 'Vote::Template::Plugin',
13);
14
15=head1 NAME
16
17Vote::View::TT - TT View for Vote
18
19=head1 DESCRIPTION
20
21TT View for Vote.
22
23=cut
24
25sub process {
26    my ($self, $c) = @_;
27
28    $c->stash->{Vote}{VERSION} = $Vote::DB::VERSION;
29    Catalyst::View::TT::process($self, $c);
30}
31
32=head1 SEE ALSO
33
34L<Vote>
35
36=head1 AUTHOR
37
38Thauvin Olivier
39
40=head1 LICENSE
41
42This library is free software, you can redistribute it and/or modify
43it under the same terms as Perl itself or CeCILL.
44
45=cut
46
471;
Note: See TracBrowser for help on using the repository browser.