| 1 | package Catalyst::Helper::View::Thumbnail; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Catalyst::Helper::View::PDF::Reuse - Helper for Thumbnail Views | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | To create a Thumbnail view in your Catalyst application, enter the following command: | ||
| 12 | |||
| 13 | script/myapp_create.pl view Thumbnail Thumbnail | ||
| 14 | |||
| 15 | Then in MyApp.pm, add a configuration item for the View::PDF::Reuse include path: | ||
| 16 | |||
| 17 | __PACKAGE__->config('View::PDF::Reuse' => { | ||
| 18 | INCLUDE_PATH => __PACKAGE__->path_to('root','templates') | ||
| 19 | }); | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | Helper for Thumbnail Views. | ||
| 24 | |||
| 25 | =head2 METHODS | ||
| 26 | |||
| 27 | =head3 mk_compclass | ||
| 28 | |||
| 29 | =cut | ||
| 30 | |||
| 31 | sub mk_compclass { | ||
| 32 | my ( $self, $helper ) = @_; | ||
| 33 | my $file = $helper->{file}; | ||
| 34 | $helper->render_file( 'compclass', $file ); | ||
| 35 | } | ||
| 36 | |||
| 37 | =head1 AUTHOR | ||
| 38 | |||
| 39 | Jon Allen, L<jj@jonallen.info> | ||
| 40 | |||
| 41 | =head1 SEE ALSO | ||
| 42 | |||
| 43 | L<Catalyst::View::Thumbnail> | ||
| 44 | |||
| 45 | =head1 COPYRIGHT & LICENSE | ||
| 46 | |||
| 47 | Copyright 2009 Jon Allen (JJ), all rights reserved. | ||
| 48 | |||
| 49 | This program is free software; you can redistribute it and/or modify it | ||
| 50 | under the same terms as Perl itself. | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | 1; | ||
| 55 | |||
| 56 | __DATA__ |