From d2ddabf3bda9a0ec99473e88f5514e0ae9e08a82 Mon Sep 17 00:00:00 2001 From: paulr Date: Sun, 30 Dec 2012 21:31:03 +1100 Subject: [PATCH] moving to module format, moved apps to subdirs --- examples/simple/myapp.js | 12 ++++++++++++ myapp.js | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 examples/simple/myapp.js delete mode 100644 myapp.js diff --git a/examples/simple/myapp.js b/examples/simple/myapp.js new file mode 100644 index 0000000..7eed9ea --- /dev/null +++ b/examples/simple/myapp.js @@ -0,0 +1,12 @@ +var app = require("njspurls"); + +app.setPort(8888); +app.setPurlPath("./purls"); +app.setDefaultMainPurl("main"); +app.addMenu("name1", "/linkto1"); +app.addMenu("name2", "/linkto2"); +app.addMenu("name3", "/linkto3"); +app.setAppName("MyExampleApp"); +app.setFooterText("

Copyright PJR.cc 2012 ©"); + +app.start(); diff --git a/myapp.js b/myapp.js deleted file mode 100644 index da5713d..0000000 --- a/myapp.js +++ /dev/null @@ -1,12 +0,0 @@ -var app = require("./lib/app.js"); - -app.setPort(8888); -app.setPurlPath("./purls"); -app.setDefaultMainPurl("main"); -app.addMenu("name1", "/linkto1"); -app.addMenu("name2", "/linkto2"); -app.addMenu("name3", "/linkto3"); -app.setAppName("MyExampleApp"); -app.setFooterText("

Copyright PJR.cc 2012 ©"); - -app.start(); -- 1.7.0.4