Vote::View::TT - TT View for Vote


Vote documentation Contained in the Vote distribution.

Index


Code Index:

NAME

Top

Vote::View::TT - TT View for Vote

DESCRIPTION

Top

TT View for Vote.

SEE ALSO

Top

Vote

AUTHOR

Top

Thauvin Olivier

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself or CeCILL.


Vote documentation Contained in the Vote distribution.
package Vote::View::TT;

use strict;
use base 'Catalyst::View::TT';

__PACKAGE__->config(
    TEMPLATE_EXTENSION => '.tt',
    INCLUDE_PATH => Vote->path_to( 'root', 'templates' ),
    PRE_PROCESS => 'includes/header.tt',
    POST_PROCESS => 'includes/footer.tt',
    PLUGIN_BASE => 'Vote::Template::Plugin',
);

sub process {
    my ($self, $c) = @_;

    $c->stash->{Vote}{VERSION} = $Vote::VERSION;
    Catalyst::View::TT::process($self, $c);
}

1;