Global/rabbit.Root.js
Summary
Additional fields and methods of the
Root class provided by the Rabbit framework.
Root.prototype.rabbit_example_action = function() {
var rabbit = new Rabbit();
if (req.data.step == "3") {
res.redirect(" Item");
}
var code = render("example:main", null, new String);
render("layout:header");
res.write("<h2>Rabbit Example</h2>");
if (req.data.step == "2") {
resetPrototypes();
eval(code);
render("html:button", {
name: "Continue",
onclick: "location.href='?step=3';"
});
} else {
res.write("<pre>" + code + "</pre>");
render("html:button", {
name: "Execute",
onclick: "location.href='?step=2';"
});
}
render("layout:footer");
return;
};
Documentation generated by
JSDoc on Thu Feb 15 20:58:41 2007