Chia-liang Kao (高嘉良) > Plack-Middleware-JSConcat-0.29 > Plack::Middleware::JSConcat

Download:
Plack-Middleware-JSConcat-0.29.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.29   Source  

NAME ^

Plack::Middleware::JSConcat - Concatenate javascripts

SYNOPSIS ^

  # in app.psgi
  use Plack::Builder;

  builder {
      enable "JSConcat",
          files => [<static/js/*.js>],
          filter => '/usr/local/bin/jsmin';
      $app;
  };

  # use $env{'psgix.jsconcat.url'} to include javascript.

DESCRIPTION ^

Plack::Middleware::JSConcat allows you to concatenate multiple javascripts files into one. It provides a content-hashed key as the url for including all the javascript files you specified. You can also provide a filter program to minimize the concatenated file.

CONFIGURATIONS ^

files
filter

AUTHOR ^

Chia-liang Kao <clkao@clkao.org>

SEE ALSO ^

Plack

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: