Module n.jsutil

Part of nevow View Source

No module docstring
Line # Kind Name Docs
13 Function getDependencies Get the javascript modules that the code in the file with name fname
56 Function findJavascriptInterpreter Return a string path to a JavaScript interpreter if one can be found in
69 Function generateTestScript Turn the contents of the Athena-style javascript test module in the file
def getDependencies(fname, ignore=('MochiKit.DOM',), bootstrap=LivePage.BOOTSTRAP_MODULES, packages=None): (source)
Get the javascript modules that the code in the file with name fname depends on, recursively
Parametersfnamejavascript source file name (type: str )
ignorenames of javascript modules to exclude from dependency list (type: sequence )
boostrapnames of javascript modules to always include, regardless of explicit dependencies (defaults to LivePage's list of bootstrap modules) (type: sequence )
packagesall javascript packages we know about. defaults to the result of allJavascriptPackages (type: dict )
Returnsmodules included by javascript in file named fname (type: dependency-ordered list of JSModule instances )
def findJavascriptInterpreter(): (source)
Return a string path to a JavaScript interpreter if one can be found in the executable path. If not, return None.
def generateTestScript(fname, after={'Divmod.Base':('Divmod.Base.addLoadEvent = function() {};',),}, dependencies=None): (source)
Turn the contents of the Athena-style javascript test module in the file named fname into a plain javascript script. Recursively includes any modules that are depended on, as well as the utility module nevow/test/testsupport.js.
Parametersfnamejavascript source file name (type: str )
aftermapping of javascript module names to sequences of lines of javascript source that should be injected into the output immediately after the source of the named module is included (type: dict )
dependenciesthe modules the script depends on. Defaults to the result of getDependencies (type: dependency-ordered list of JSModule instances )
Returnsconverted javascript source text (type: str )
API Documentation for Nevow, generated by pydoctor.