Class Library
Object
|
+--Library
- class
Library
Defined in dependencies.js
Method Summary |
void
|
setBase(<string> str)
Sets the prefix for scripts whose filename does not end in
.cgi.
|
void
|
setCGIBase(<string> str)
Sets the prefix for scripts whose filename ends with .cgi.
|
void
|
use(varArgs)
Dynamically loads the scripts specified in the argument list, satisfying
dependencies as required.
|
Library
function Library()
setBase
void setBase(<string> str)
Sets the prefix for scripts whose filename does not end in
.cgi. The default value for this prefix is the empty string.
Parameters:
str
- the new prefix for static scripts
setCGIBase
void setCGIBase(<string> str)
Sets the prefix for scripts whose filename ends with .cgi. The
default value for this prefix is the empty string.
Parameters:
str
- the new prefix for dynamic scripts
use
void use(varArgs)
Dynamically loads the scripts specified in the argument list, satisfying
dependencies as required.
Parameters:
varArgs
- a variable-length list of arguments. Strings are interpreted as the filenames of scripts to load, functions are called as they are encountered, and other values are coerced to strings. Strings ending in .cgi are taken relative to the value most recently passed to setCGIBase()
, all other strings are taken relative to the value most recently passed to setBase()
.
