NAME
JavaScript::Ectype::Handler::Apache2 - An Apache2 Handler JavaScript Preprocessor designed for large scale javascript development
SYNOPSYS
# 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.
VARIABLES
In httpd.conf, you can set some variables to control JavaScript::Ectype.
EctypeLibPath
EctypeLibPath is where javascript files are.
EctypePrefix
EctypePrefix is url prefix.
EctypeMinify
EctypeMinify is whether minify javascript code or not.
AUTHOR
Daichi Hiroki, <hirokidaichi<AT>gmail.com>
SEE ALSO
LICENSE AND COPYRIGHT
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.