NAME
Plack::Middleware::JavaScript::Ectype - An Plack Middleware JavaScript Preprocessor designed for large scale javascript development
SYNOPSYS
# 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.
VARIABLES
you can set some variables to control JavaScript::Ectype.
root
EctypeLibPath is where javascript files are.
prefix
prefix is url prefix.
minify
minify 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.