Minifier Plugin

A plugin for minifying CSS and JavaScript. Dedicated to MT4.

Minifier-0.01.zip

This software is available free to both personal and commercial users, however you are encouraged to make a donation as a token of thanks and for continued development.

Changes

  • 0.01:
    • Initial release.

Overview

Minifier plugin allows you to minify your CSS and JavaScript templates and reduce their file sizes.

Installation

  1. Download and extract Minifier-<version>.zip file.
  2. Upload or copy the contents of "Minifier-<version>/plugins" directory into your MT "plugins" directory.
  3. After proper installation, you will find "Minifier" plugin listed on the "System Plugin Settings" screen.

Tags and modifiers

Minifier plugin provides mt:CSSMinifier and mt:JSMinifier block tags.

mt:CSSMinifier

A block tag which minifies a CSS template.

Example:

    <mt:CSSMinify>
    (contents of CSS template)
    </mt:CSSMinify>

mt:JSMinifier

A block tag which minifies a JavaScript template.

Example:

    <mt:JSMinify>
    (contents of JavaScript template)
    </mt:JSMinify>

See Also

License

Copyright (c) 2008 Hirotaka Ogawa <hirotaka.ogawa at gmail.com>. All rights reserved.

This library 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" which comes with Perl.