Helper/View/JSON.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
mk_compclass
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Catalyst::Helper::View::JSON;
2  
3 use strict;
4 use warnings;
5  
6 =head1 NAME
7  
8 Catalyst::Helper::View::JSON - Helper for JSON Views
9  
10 =head1 SYNOPSIS
11  
12 script/create.pl view JSON JSON
13  
14 =head1 DESCRIPTION
15  
16 Helper for JSON Views.
17  
18 =head2 METHODS
19  
20 =head3 mk_compclass
21  
22 =cut
23  
24 sub mk_compclass {
25 my ( $self, $helper ) = @_;
26 my $file = $helper->{file};
27 $helper->render_file( 'compclass', $file );
28 }
29  
30 =head1 SEE ALSO
31  
32 L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>,
33 L<Catalyst::Response>, L<Catalyst::Helper>
34  
35 =head1 AUTHOR
36  
37 Sebastian Riedel, C<sri@oook.de>
38  
39 =head1 LICENSE
40  
41 This library is free software . You can redistribute it and/or modify
42 it under the same terms as perl itself.
43  
44 =cut
45  
46 1;
47  
48 __DATA__