JavaScript::Ectype::Handler::Apache2 - An Apache2 Handler JavaScript Preprocessor designed for large scale javascript development
# in httpd.conf <LocationMatch "/ectype/[a-zA-Z0-9.]+"> SetHandler perl-script PerlResponseHandler JavaScript::Ectype::Handler::Apache2 PerlSetVar EctypeLibPath "$DOCUMENT_ROOT/static/js" PerlSetVar EctypePrefix "/ectype/" PerlSetVar EctypeMinify 0 </LocationMatch>
For example , you access http://example.com/ectype/org.cpan.ajax, get response $DOCUMENT_ROOT/static/js/org/cpan/ajax.js converted by JavaScript::Ectype.
In httpd.conf, you can set some variables to control JavaScript::Ectype.
EctypeLibPath is where javascript files are.
EctypePrefix is url prefix.
EctypeMinify is whether minify javascript code or not.
Daichi Hiroki, <hirokidaichi<AT>gmail.com>
<hirokidaichi<AT>gmail.com>
JavaScript::Ectype
Copyright 2009 Daichi Hiroki.
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::Ectype::Handler::Apache2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript::Ectype::Handler::Apache2
CPAN shell
perl -MCPAN -e shell install JavaScript::Ectype::Handler::Apache2
For more information on module installation, please visit the detailed CPAN module installation guide.