diff options
Diffstat (limited to 'lib/MGA/Mirrors/View')
-rw-r--r-- | lib/MGA/Mirrors/View/TT.pm | 43 | ||||
-rw-r--r-- | lib/MGA/Mirrors/View/TTBlock.pm | 40 |
2 files changed, 83 insertions, 0 deletions
diff --git a/lib/MGA/Mirrors/View/TT.pm b/lib/MGA/Mirrors/View/TT.pm new file mode 100644 index 0000000..f5e2a50 --- /dev/null +++ b/lib/MGA/Mirrors/View/TT.pm @@ -0,0 +1,43 @@ +package MGA::Mirrors::View::TT; + +use strict; +use warnings; +use MGA::Mirrors; + +use base 'Catalyst::View::TT'; + +__PACKAGE__->config( + TEMPLATE_EXTENSION => '.tt', + render_die => 1, + INCLUDE_PATH => [ + MGA::Mirrors->path_to( 'root', 'html', 'includes' ), + MGA::Mirrors->path_to( 'root', 'html', 'pages' ), + ], + PRE_PROCESS => 'header.tt', + POST_PROCESS => 'footer.tt', +); + +=head1 NAME + +MGA::Mirrors::View::TT - TT View for MGA::Mirrors + +=head1 DESCRIPTION + +TT View for MGA::Mirrors. + +=head1 SEE ALSO + +L<MGA::Mirrors> + +=head1 AUTHOR + +Olivier Thauvin + +=head1 LICENSE + +This library is free software. You can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + +1; diff --git a/lib/MGA/Mirrors/View/TTBlock.pm b/lib/MGA/Mirrors/View/TTBlock.pm new file mode 100644 index 0000000..468a063 --- /dev/null +++ b/lib/MGA/Mirrors/View/TTBlock.pm @@ -0,0 +1,40 @@ +package MGA::Mirrors::View::TTBlock; + +use strict; +use warnings; +use MGA::Mirrors; + +use base 'Catalyst::View::TT'; + +__PACKAGE__->config( + TEMPLATE_EXTENSION => '.tt', + render_die => 1, + INCLUDE_PATH => [ + MGA::Mirrors->path_to( 'root', 'html', 'includes' ), + ], +); + +=head1 NAME + +MGA::Mirrors::View::TT - TT View for MGA::Mirrors + +=head1 DESCRIPTION + +TT View for MGA::Mirrors. + +=head1 SEE ALSO + +L<MGA::Mirrors> + +=head1 AUTHOR + +Olivier Thauvin + +=head1 LICENSE + +This library is free software. You can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + +1; |