File Coverage

blib/lib/HTML/Tested/JavaScript.pm
Criterion Covered Total %
statement 12 13 92.3
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 19 84.2


line stmt bran cond sub pod time code
1             =head1 NAME
2              
3             HTML::Tested::JavaScript - JavaScript enabled HTML::Tested widgets.
4              
5             =head1 SYNOPSIS
6              
7             use HTML::Tested::JavaScript qw(HTJ);
8            
9             # set location of your javascript files
10             $HTML::Tested::JavaScript::Location = "/my-js-files";
11              
12             =head1 DESCRIPTION
13              
14             This is collection of HTML::Tested-style widgets which use JavaScript
15             functionality.
16              
17             It presently includes:
18              
19             =over
20              
21             =item HTML::Tested::JavaScript::Variable
22              
23             Produces simple JavaScript variable with necessary escaping.
24              
25             =item HTML::Tested::JavaScript::Serializer
26              
27             Which can be used to serialize data between your JS script and server.
28              
29             =item HTML::Tested::JavaScript::RichEdit
30              
31             Which provides infrastructure for rich text editing widget.
32              
33             =back
34              
35             Please see individual modules for more information.
36              
37             =cut
38              
39 4     4   91144 use strict;
  4         9  
  4         6037  
40 4     4   24 use warnings FATAL => 'all';
  4         9  
  4         219  
41              
42             package HTML::Tested::JavaScript;
43 4     4   19 use base 'Exporter';
  4         7  
  4         730  
44              
45             our $VERSION = '0.30';
46              
47             our @EXPORT_OK = qw(HTJ $Location);
48              
49             =head1 CONSTANTS
50              
51             =head2 HTJ
52              
53             It is shortcut for HTML::Tested::JavaScript. It is can be exported by importing
54             HTML::Tested::JavaScript with HTJ parameter.
55              
56             =cut
57 4     4   38 use constant HTJ => __PACKAGE__;
  4         9  
  4         1030  
58              
59             =head1 VARIABLES
60              
61             =head2 $Location
62              
63             Set location of your javascript files. This is the src string in \n"
71             }
72              
73             1;
74              
75             =head1 AUTHOR
76              
77             Boris Sukholitko
78             boriss@gmail.com
79            
80              
81             =head1 COPYRIGHT
82              
83             This program is free software; you can redistribute
84             it and/or modify it under the same terms as Perl itself.
85              
86             The full text of the license can be found in the
87             LICENSE file included with this module.
88              
89              
90             =head1 SEE ALSO
91              
92             HTML::Tested documentation.
93             L.
94              
95             =cut
96