ajile 2.1.7

Copyright (c) 2003-2013 Mike Lee [ajile.net + @ajilenet]

Available under MPL, LGPL, or GPL licenses.



Description


ajile: advanced javaScript importing & loading extension


Features



Target Environment


ajile is compatible with the following Specifications and Browsers:



Directives


Import : Used to import JavaScript modules with full & shortened-name access.
ImportAs : Used to import JavaScript modules with aliased shortened-name or full-name access.
Include : Used to include JavaScript modules with full-name access only.
Load : Used to load JavaScript modules from a specific location.
Namespace : Used to define a JavaScript namespace.

(See Docs for detailed information, and API Examples for usage.)



Methods


Ajile.AddImportListener() : Allows adding an import event listener.
Ajile.EnableCloak() : Toggles on/off source code cloaking.
Ajile.EnableDebug() : Toggles on/off logging of Ajile's debug information.
Ajile.EnableLegacy() : Toggles on/off support for code using legacy releases (i.e. JSPackaging & ajile 0.5.5 and earlier).
Ajile.EnableOverride() : Toggles on/off silently overriding similarly named modules.
Ajile.EnableRefresh() : Toggles on/off guaranteed refreshing of loaded scripts and imported modules.
Ajile.GetVersion() : Retrieves Ajile's version number.
Ajile.RemoveImportListener() : Allows removing an import event listener.
Ajile.SetOption(<option name>, [true|false]) : Toggles on/off the specified option (i.e. cloak, debug, legacy, mvc, mvcshare, override, refresh).
Ajile.ShowLog() : Displays Ajile's debug information.
Ajile.Unload([moduleName|namespace]) : Unloads the specified module, namespace, or Ajile and its resources from memory.

(See Docs for detailed information, and API Examples for usage.)



Load-time Options


The following options are used to enable/disable ajile features at load time:

cloak : Toggles on/off source code hiding.
debug : Toggles on/off logging of ajile's debug information.
legacy : Toggles on/off support for code using legacy releases (i.e. JSPackaging & ajile 0.5.5 and earlier).
mvc : Toggles on/off the auto-loading of a page's control module.
mvcshare : Toggles on/off the auto-loading of a site's shared control module.
override : Toggles on/off silently overriding similarly named modules.
refresh : Toggles on/off guaranteed refreshing of loaded scripts and imported modules.

(See Docs for detailed information, and API Examples for usage.)



Thanks


Thanks for using ajile. Feel free to post questions, bugs, suggestions or information about how you're using it within other applications, libraries or other creations. Special thanks to those who've given feedback and helped troubleshoot, including andrea, cameron, danny, levani, mark, samir, and thomas.

{Michael:iSkitz}