From 33b282a980af1a756710987498cc9962b5ff117b Mon Sep 17 00:00:00 2001 From: paulr Date: Sun, 30 Dec 2012 21:33:56 +1100 Subject: [PATCH] added more historical stuff --- examples/simple/purls/asdf.js | 17 +++++++++++++++++ examples/simple/purls/main.js | 10 ++++++++++ package.json | 12 ++++++++++++ 3 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 examples/simple/purls/asdf.js create mode 100644 examples/simple/purls/main.js create mode 100644 package.json diff --git a/examples/simple/purls/asdf.js b/examples/simple/purls/asdf.js new file mode 100644 index 0000000..4548ccb --- /dev/null +++ b/examples/simple/purls/asdf.js @@ -0,0 +1,17 @@ +exports.layout = function () { + var lay = "

Example Custom Layout




"; + + return lay; +} + + +exports.extra = function(request, response, callback) { + response.write("heres some stuff for extra!!
"); + callback(); +} + +exports.preResponse = function(request, response, callback) { + console.log("this is preresponse for asdf"); + callback(); +} + diff --git a/examples/simple/purls/main.js b/examples/simple/purls/main.js new file mode 100644 index 0000000..888876c --- /dev/null +++ b/examples/simple/purls/main.js @@ -0,0 +1,10 @@ +exports.body = function(request, response, callback) { + response.write("new body for main"); + callback(); +} + +exports.preResponse = function(request, response, callback) { + console.log("this is preresponse for main"); + callback(); +} + diff --git a/package.json b/package.json new file mode 100644 index 0000000..2a5d438 --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name" : "njspurls", + "description" : "Node JS Primary URL Servicer.", + "homepage" : "http://pjr.cc/", + "keywords" : ["util", "functional", "server", "client", "browser"], + "author" : "Paul J R ", + "contributors" : [], + "dependencies" : [], + "repository" : {"type": "git", "url": "git://github.com/.git"}, + "main" : "lib/app.js", + "version" : "0.0.0" +} \ No newline at end of file -- 1.7.0.4