Jifty/Plugin/CSSQuery.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
init
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 package Jifty::Plugin::CSSQuery;
5 use base qw/ Jifty::Plugin /;
6  
7 =head1 NAME
8  
9 Jifty::Plugin::CSSQuery - use the cssQuery JavaScript library with Jifty
10  
11 =head1 SYNOPSIS
12  
13 In your F<etc/config.yml>:
14  
15 framework:
16 Plugins:
17 - CSSQuery: {}
18  
19 =head1 DESCRIPTION
20  
21 cssQuery() is a powerful cross-browser JavaScript function that
22 enables querying of a DOM document using CSS selectors. All CSS1 and
23 CSS2 selectors are allowed plus quite a few CSS3 selectors.
24  
25 This is a Jifty plugin that let you use cssQuery javascript library in
26 your Jifty application. cssQuery has been bundle with Jifty for a long
27 time, for Jifty use it internally. Now it's been replaced with jQuery.
28 It's now a plugin for backward compatibility.
29  
30 It is disabled by default, unless your C<ConfigFileVersion> is smaller
31 or equal then 2.
32  
33 For more information about cssQuery, see L<http://dean.edwards.name/my/cssQuery/>.
34  
35 =head1 METHODS
36  
37 =head2 init
38  
39 This initializes the plugin, which simply includes the JavaScript
40 necessary to load cssQuery, and gets rid of the cssQuery-jquery back-compat
41 script.
42  
43 =cut
44  
45 sub init {
46 Jifty->web->remove_javascript(
47 'cssQuery-jquery.js',
48 );
49  
50 Jifty->web->add_javascript(
51 'cssquery/cssQuery.js',
52 'cssquery/cssQuery-level2.js',
53 'cssquery/cssQuery-level3.js',
54 'cssquery/cssQuery-standard.js'
55 );
56 }
57  
58 =head1 SEE ALSO
59  
60 L<http://jifty.org>, L<http://dean.edwards.name/my/cssQuery/>
61  
62 =head1 COPYRIGHT AND LICENSE
63  
64 This plugin is Copyright 2007 Handlino, Inc.
65  
66 It is available for modification and distribution under the same terms
67 as Perl itself.
68  
69 cssQuery is available for use in all personal or commercial projects
70 under both MIT and GPL licenses. This means that you can choose the
71 license that best suits your project and use it accordingly. See
72 L<http://jifty.com/> for current information on cssQuery copyrights
73 and licensing.
74  
75 =cut
76  
77 1;