Skip to content

Commit

Permalink
add require()s to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 4, 2012
1 parent 5aeae29 commit a82a264
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
Small:

```js
var http = require('http');
var send = require('send');

var app = http.createServer(function(req, res){
send(req.url).pipe(res);
});
Expand All @@ -20,6 +23,9 @@ var app = http.createServer(function(req, res){
Serving from a root directory with custom error-handling:

```js
var http = require('http');
var send = require('send');

var app = http.createServer(function(req, res){
// your custom error-handling logic:
function error(err) {
Expand Down

0 comments on commit a82a264

Please sign in to comment.