The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Template::Plugin::Filter::Minify::JavaScript::XS - JavaScript::Minifier::XS filter for Template Toolkit

SYNOPSIS

  [% USE Filter.Minify.JavaScript.XS %]

  [% FILTER minify_js %]
    $(document).ready(
        function() {
            $('body').append('<div>Hello World!</div>');
        }
    );
  [% END %]

DESCRIPTION

This module is a Template Toolkit filter, which uses JavaScript::Minifier::XS to compress javascript code from filtered content during template processing.

SOURCE

You can contribute or fork this project via github:

http://github.com/mschout/template-plugin-filter-minify-javascript-xs

 git clone git://github.com/mschout/template-plugin-filter-minify-javascript-xs.git

BUGS

Please report any bugs or feature requests to bug-template-plugin-filter-minify-javascript-xs@rt.cpan.org, or through the web interface at http://rt.cpan.org/

AUTHOR

Michael Schout <mschout@cpan.org>

COPYRIGHT & LICENSE

Copyright 2009 Michael Schout.

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; either version 1, or (at your option) any later version, or

  • the Artistic License version 2.0.

SEE ALSO

JavaScript::Minifer::XS, Template::Plugin::Filter, Template