JavaScript::Sprockets - create javascript concatenations
Version 0.03
Create javascript concatenations using the sprockets command-line tool. Read more about why using sprockets is useful at http://getsprockets.org.
use JavaScript::Sprockets; my $sp = JavaScript::Sprockets->new( load_paths => ["src/javascripts", "vendor/jquery"], ); # a concatenation of app.js and its requirements my $concat = $sp->concatenation("app.js");
Optional parameters include
Change to this directory before doing anything.
Search these directories for files. Takes an array reference.
A path to the sprocketize program.
Build a concatention for the provided file.
Adds the provided directory to the load_path.
Remove the provided directory from the load_path.
Lee Aylward, <leedo at cpan.org>
<leedo at cpan.org>
Please report any bugs or feature requests to bug-javascript-sprockets at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=JavaScript-Sprockets. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-javascript-sprockets at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc JavaScript::Sprockets
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=JavaScript-Sprockets
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/JavaScript-Sprockets
CPAN Ratings
http://cpanratings.perl.org/d/JavaScript-Sprockets
Search CPAN
http://search.cpan.org/dist/JavaScript-Sprockets/
Copyright 2010 Lee Aylward.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install JavaScript::Sprockets, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript::Sprockets
CPAN shell
perl -MCPAN -e shell install JavaScript::Sprockets
For more information on module installation, please visit the detailed CPAN module installation guide.