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 | |
---|
1 | package Vote::View::TT; |
---|
2 | |
---|
3 | use strict; |
---|
4 | use base 'Catalyst::View::TT'; |
---|
5 | use 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 | |
---|
17 | Vote::View::TT - TT View for Vote |
---|
18 | |
---|
19 | =head1 DESCRIPTION |
---|
20 | |
---|
21 | TT View for Vote. |
---|
22 | |
---|
23 | =cut |
---|
24 | |
---|
25 | sub 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 | |
---|
34 | L<Vote> |
---|
35 | |
---|
36 | =head1 AUTHOR |
---|
37 | |
---|
38 | Thauvin Olivier |
---|
39 | |
---|
40 | =head1 LICENSE |
---|
41 | |
---|
42 | This library is free software, you can redistribute it and/or modify |
---|
43 | it under the same terms as Perl itself or CeCILL. |
---|
44 | |
---|
45 | =cut |
---|
46 | |
---|
47 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.