File Coverage

blib/lib/Template/Plugin/GoogleChart.pm
Criterion Covered Total %
statement 10 12 83.3
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 16 87.5


line stmt bran cond sub pod time code
1             package Template::Plugin::GoogleChart;
2 1     1   24 use 5.006;
  1         3  
  1         56  
3 1     1   5 use strict;
  1         2  
  1         43  
4 1     1   5 use warnings;
  1         1  
  1         38  
5 1     1   2403 use Google::Chart;
  0            
  0            
6             our $VERSION = '0.02';
7             use base qw(Template::Plugin);
8             sub new_chart {
9             my ($self, $args) = @_;
10             Google::Chart->new($args) }
11             1;
12             __END__
13              
14             =for test_synopsis
15             1;
16             __END__
17              
18             =head1 NAME
19              
20             Template::Plugin::GoogleChart - Using Google::Chart as a template plugin
21              
22             =head1 SYNOPSIS
23              
24             [% USE c = GoogleChart %]
25             [% chart = c.new_chart %]
26             [% ... set up chart ... %]
27             [% chart.img_tag %]
28              
29             =head1 DESCRIPTION
30              
31             =head1 METHODS
32              
33             =over 4
34              
35             =item C<new_chart>
36              
37             Returns a new L<Google::Chart> object. See its documentation for how to use
38             the chart object. You will probably want to write out the URL with the chart
39             object's C<get_url()> method or write out the C<IMG> tag with C<img_tag()> as
40             shown in the synopsis.
41              
42             =back
43              
44             =head1 BUGS AND LIMITATIONS
45              
46             No bugs have been reported.
47              
48             Please report any bugs or feature requests through the web interface at
49             L<http://rt.cpan.org>.
50              
51             =head1 INSTALLATION
52              
53             See perlmodinstall for information and options on installing Perl modules.
54              
55             =head1 AVAILABILITY
56              
57             The latest version of this module is available from the Comprehensive Perl
58             Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN
59             site near you. Or see L<http://search.cpan.org/dist/Template-Plugin-GoogleChart/>.
60              
61             =head1 AUTHORS
62              
63             Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >>
64              
65             =head1 COPYRIGHT AND LICENSE
66              
67             Copyright 2007-2009 by the authors.
68              
69             This library is free software; you can redistribute it and/or modify
70             it under the same terms as Perl itself.
71              
72             =cut
73