Permalink
Browse files

Updated README

  • Loading branch information...
1 parent aeca21b commit 34af4426eb17b183dc5ec6ab09404a61665c4074 @fictorial fictorial committed Apr 24, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.markdown
View
@@ -16,15 +16,17 @@ You mess with Jefe and Jefe messes with you.
## How do I use it?
+See [this example](http://github.com/fictorial/jefe/blob/master/examples/circumference.js) for a documented version.
+
var sys = require("sys"),
jefe = new require("../lib/jefe"), // change me as needed
elJefe = new jefe.Jefe();
elJefe.addScript("circumference", "C = 2 * Math.PI * R");
- elJefe.runScript("circumference", { R:10 }, function (error, response) {
+ elJefe.runScript("circumference", { R:10 }, function (error, updatedSandbox) {
if (error) throw new Error(error);
- sys.puts("The circumference of a circle with radius 10 is: " + response.sandbox.C);
+ sys.puts("The circumference of a circle with radius 10 is: " + updatedSandbox.C);
});
// outputs (logging info for now) and:

0 comments on commit 34af442

Please sign in to comment.