OopJs Wiki
Native Java-like Script for Modern Browsers
Status: Abandoned
Brought to you by:
winstontamblyn
Importing a class makes it available to the internal argument of a package or class call. A call to $import takes a single string, representing the fully qualified name of the class, and dynamically loads a script based on that parameter.
Example:
$import('path.to.MyClass')
This will attempt to load the class from a script with the src set to "path/to/MyClass.js". The filename is relative to the current working directory, which defaults to the directory of the html document that loaded OopJs. For info on how to change the working directory, check out the page on [$chdir].