GetNodeJS Class
NodeJS specific Get module used to load remote resources. It contains the same signature as the default Get module so there is no code change needed.
Item Index
Methods
Methods
_exec
(
private
-
data
-
url
-
cb
Takes the raw JS files and wraps them to be executed in the YUI context so they can be loaded into the YUI object
_include
(
private
-
url
-
cb
Fetches the content from a remote URL or a file from disc and passes the content
off to _exec
for parsing
Parameters:
-
url
StringThe URL/File path to fetch the content from
-
cb
CallbackThe callback to fire once the content has been executed via
_exec
escapeWinPath
(
String
protected
-
p
Escape the path for Windows, they need to be double encoded when used as __dirname
or __filename
Parameters:
-
p
StringThe path to modify
Returns:
String:
The encoded path
js
(
-
s
-
options
Override for Get.script for loading local or remote YUI modules.
script
()
Alias for Y.Get.js