Skip to content

Instantly share code, notes, and snippets.

@eliaskg
Created December 29, 2011 10:38
Show Gist options
  • Select an option

  • Save eliaskg/1533438 to your computer and use it in GitHub Desktop.

Select an option

Save eliaskg/1533438 to your computer and use it in GitHub Desktop.
Express.js & Step
var express = require("express");
var step = require("step");
var app = express.createServer();
app.get("/", function(req, res)
{
step(
function one()
{
console.log("one");
if (true)
return res.send("one");
this();
},
function two()
{
console.log("two");
res.send("two");
}
);
});
app.listen(8080, function() {
console.log("App is running on port 8080");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment