There is one last key aspect of modules, which has not been touched yet: the opportunity to add new command line options to modules.
This recipe utilizes the Dojo toolkit to show this feature. Dojo is one of the big JavaScript toolkits, which features tons of widgets, a simple interface, and a very easy start for object oriented developers. If you are using the standard distribution of Dojo together with a lot of widgets, there are many HTTP requests for all the widgets, as every widget is put into its own JavaScript file in a default Dojo installation. Many requests result in very slow application loading. Dojo comes with its own JavaScript optimizer called ShrinkSafe, which handles lots of things, like compressing the JavaScript code needed by your custom application into one single file as well as creating i18n files and compressing CSS code.
In order to use the ShrinkSafe capabilities, you need a developer build of Dojo. A configuration file...