Requires a file from the extended Zimki library. This provides access to common extensions to the standard Zimki library.
For example:
zimki.library.require( "trimpath.js" );
zimki.render.trimpath( "mytemplate", {} );
When used with 2 parameters, it will require and evaluate a public JavaScript file from a named realm:
zimki.library.require("api_key_alias", "foo.js");
For JavaScript to be included like this, it must be marked as 'readable by all' in the class permissions editor, and this is not the case by default - you must explicitly make your JavaScript public. There is currently no formal way of publicising public JavaScript, but this should be coming soon.
Parent
zimki.library
|