A quick thanks for the excellent MochiKit! I like to write small, efficient code and MochiKit has helped me in that effort. I only needed a bit of JS to support my Perl CGI::Ajax website ( http://waxandwane.org/das/ ) and I accomplished it in about 75 lines.
I didn't find any documentation or notes on the website or in the maillist archives (or google) on how to roll your own packed mochikit file, so I offer this brief nugget to the community: After your development is completed using the full MochiKit.js file, you want to replace MochiKit.js with a small packed version containing the smallest number of modules required by your app. Start by directly included the smallest number of modules: - <script src="mochikit/MochiKit/MochiKit.js" type="text/javascript"> + <script src="mochikit/MochiKit/Base.js" type="text/javascript"> + <script src="mochikit/MochiKit/Async.js" type="text/javascript"> + <script src="mochikit/MochiKit/DOM.js" type="text/javascript"> + <script src="mochikit/MochiKit/Style.js" type="text/javascript"> + <script src="mochikit/MochiKit/Signal.js" type="text/javascript"> After you've tested and whittled it down as far as you can, create your customized packed file as so: # cd mochikit # scripts/pack.py "Base" "Async" "DOM" "Style" "Signal" >../MochiKit4MyApp.js # cd .. # chmod 604 MochiKit4MyApp.js and replace all your MochiKit script lines with the single line: + <script src="MochiKit4MyApp.js" type="text/javascript"> Finally, retest and release! Hope this helps someone else! -Ross --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
