[Pkg-javascript-commits] [node-static] 116/151: Update README.md

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:18:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 0294a0eb8c7d48214445575635d152bca93e19f3
Author: Sebastian Schürmann <sebs at 2xs.org>
Date:   Mon Apr 22 15:52:47 2013 +0300

    Update README.md
    
    Making the examples a little more copy and paste friendly
---
 README.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/README.md b/README.md
index 236ef03..1db91f2 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,8 @@ This is the default setting.
 
 To serve files under a directory, simply call the `serve` method on a `Server` instance, passing it
 the HTTP request and response object:
+ 
+    var static = require('node-static');
 
     var fileServer = new static.Server('./public');
 
@@ -87,6 +89,8 @@ More on intercepting errors bellow.
 An optional callback can be passed as last argument, it will be called every time a file
 has been served successfully, or if there was an error serving the file:
 
+    var static = require('node-static');
+    
     var fileServer = new static.Server('./public');
 
     require('http').createServer(function (request, response) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list