Chapter 14.1.1. MochiKit’s Packaging

MochiKit is packaged up as a single, packed MochiKit.js file that contains all of the features. Note, however, that the features covered in “The Wow Factor” section of Chapter 15, “Effective Ajax with MochiKit,” have not yet been packaged into a full MochiKit.js. You can use those modules separately now and you will still be able to do so after MochiKit 1.4 is released.

In addition to the single .js file format, you can use just the parts of MochiKit that you need. MochiKit’s documentation provides a clear indication for each module of which modules are required, and MochiKit makes sure that the requirements are met. If you use MochiKit.Iter without including MochiKit.Base, for example, an exception ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.