Never write a server-side compression script again.
TinyMCE is a commonly used Javascript HTML WYSIWYG editor library. This page demonstrates the ease with which you can compress a complex library and its optional components with Include.
Include provides a list of the included files in the order they are loaded.
We modified TinyMCE to use include() for loading its scripts rather than document.write(). After you click compress, an iframe is loaded with TinyMCE and the selected plugins in "compress" mode. A separate window is opened that performs the compression. This is all done client-side.
Never write a server-side compression script again for any library. Turn on compress mode and reload the page.
No need to repeat any plugin loading logic in a server-side script. The ordered list of files is compiled as the page loads, then automatically compressed.
Rather than write a compressor for lots of server languages, include's compressor covers every user because JavaScript runs on every browser.
Overview
Include's features, highlights, and a Ruby compressor script.
Learn
A usage walkthrough and examples.
API
Low level documentation on the Include methods.