Home > Plugins > MT - Closure Compiler

MT - Closure Compiler

February 19, 2010Mike0 comments

This plugin provides integration between Movable Type and Google's Closure Compiler REST service for JavaScript. It allows JavaScript index templates to be compiled by the Closure Compiler whenever they are republished by Movable Type. To install it, upload it to your Movable Type folder and unzip its contents into the plugins directory. JavaScript index templates will gain a new radio box in template editor under template options to control how strongly the code is processed. The three options are:

  1. White space only
  2. Simply optimizations
  3. Advanced optimizations

The default is the second one. It is the most appropriate choice for most people, especially if you are hosting JavaScript like jQuery plugins. The Closure Compiler sometimes has a difficult time not breaking the way that the jQuery plugin architecture connects a plugin to the main jQuery object from jquery.js. Therefore, use advanced optimizations only after you have thoroughly tested your JavaScript with it.

Closure Compiler Plugin Settings Closure Compiler Template Options

Download it.

If you like this work, please consider rattling the ol' tip jar!

Categories: PluginsTags:
  1. No comments yet.