I’ve looked at the dojo-node module (https://github.com/agebrock/dojo-node) and the author says that Dojo 1.7 will support Node.js natively.
There is a configNode.js file in Dojo 1.7, but I’m not sure how to use it to have Dojo up and running.
http://download.dojotoolkit.org/release-1.7.0b1/dojo-release-1.7.0b1/dojo/_base/
Can somebody point me into the right direction? Perhaps show me a small example also?
Appreciate any help I can get.
Here’s my solution, although it may look tricky since I can’t search out any official examples, I have to read the source and work it out:
Assume dojo is under
/home/root/dojoroot/dojo/dojo.jsCreate
/home/root/mynode/test.jswith content:Create
/home/root/mynode/main.jswith content:$> node /home/root/mynode/test.js load=test