Plack::Middleware::JavaScript::Ectype - An Plack Middleware JavaScript Preprocessor designed for large scale javascript development
# in apps.psgi builder { enable "Plack::Middleware::JavaScript::Ectype", root => '$DOCUMENT_ROOT/static/js/',prefix => '/ectype/',minify => 1; sub { [200,['Content-Type'=> 'text/plain','Content-Length'=> 2],['ok']] } };
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.
you can set some variables to control JavaScript::Ectype.
EctypeLibPath is where javascript files are.
prefix is url prefix.
minify 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 Plack::Middleware::JavaScript::Ectype, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::JavaScript::Ectype
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::JavaScript::Ectype
For more information on module installation, please visit the detailed CPAN module installation guide.