Catalyst/Helper/View/PDF/Reuse.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::PDF::Reuse;
2  
3 use strict;
4  
5 =head1 NAME
6  
7 Catalyst::Helper::View::PDF::Reuse - Helper for PDF::Reuse Views
8  
9 =head1 SYNOPSIS
10  
11 To create a PDF::Reuse view in your Catalyst application, enter the following command:
12  
13 script/myapp_create.pl view PDF::Reuse PDF::Reuse
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 PDF::Reuse 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::PDF::Reuse>
44  
45 Penny's Arcade Open Source - L<http://www.pennysarcade.co.uk/opensource>
46  
47 =head1 COPYRIGHT & LICENSE
48  
49 Copyright 2009 Penny's Arcade Limited, all rights reserved.
50  
51 This program is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself.
53  
54 =cut
55  
56 1;
57  
58 __DATA__