added more historical stuff
authorpaulr <paulr@tv.pjr.cc>
Sun, 30 Dec 2012 10:33:56 +0000 (21:33 +1100)
committerpaulr <paulr@tv.pjr.cc>
Sun, 30 Dec 2012 10:33:56 +0000 (21:33 +1100)
examples/simple/purls/asdf.js [new file with mode: 0644]
examples/simple/purls/main.js [new file with mode: 0644]
package.json [new file with mode: 0644]

diff --git a/examples/simple/purls/asdf.js b/examples/simple/purls/asdf.js
new file mode 100644 (file)
index 0000000..4548ccb
--- /dev/null
@@ -0,0 +1,17 @@
+exports.layout = function () {
+       var lay = "<html><h1>Example Custom Layout</h1><br><?njs fuubar ?><br><?njs title ?><br><?njs extra ?></html>";
+       
+       return lay;
+}
+
+
+exports.extra = function(request, response, callback) {
+       response.write("heres some stuff for extra!!<br>");
+       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 (file)
index 0000000..888876c
--- /dev/null
@@ -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 (file)
index 0000000..2a5d438
--- /dev/null
@@ -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 <me@pjr.cc>",
+  "contributors" : [],
+  "dependencies" : [],
+  "repository" : {"type": "git", "url": "git://github.com/.git"},
+  "main" : "lib/app.js",
+  "version" : "0.0.0"
+}
\ No newline at end of file