Helper/View/Thumbnail.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
mk_compclass
2.0
BEGIN
2.0
CRAP 2.0
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__