JavaScript::Framework::jQuery::Plugin::funcliteral - Add literal JavaScript code to document ready
# add literal text to output of $(document).ready(function (){...}); my $plugin = JavaScript::Framework::jQuery::Plugin::funcliteral->new( funccalls => [ '$("div ul").foobar();', '$("div ul").barfoo();' ] ); print $plugin->cons_statement; # $("div ul").foobar(); # $("div ul").barfoo();
Support for addition of literal function call or other JavaScript code to the body of the $(document).ready(...) call text.
Return the text of the JavaScript statements passed in the constructor, joined with newlines.
David P.C. Wollmann <converter42 at gmail.com>
Copyright 2009 David P.C. Wollmann, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install JavaScript::Framework::jQuery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript::Framework::jQuery
CPAN shell
perl -MCPAN -e shell install JavaScript::Framework::jQuery
For more information on module installation, please visit the detailed CPAN module installation guide.