commenting example code
[nodejsws.git] / examples / simple / purls / main.js
index 888876c..f279247 100644 (file)
@@ -1,8 +1,13 @@
+
+// the standard layout (which can be seen in layouts.js) includes a body -
+// this function is responsible for rendering that body
 exports.body = function(request, response, callback) {
        response.write("new body for main");
        callback();
 }
 
+// before any data is written for a request, this is called and this is where you
+// might process post data for example.
 exports.preResponse = function(request, response, callback) {
        console.log("this is preresponse for main");
        callback();