1 // require the main njspurls modules
2 var app = require("njspurls");
4 // below we set a bunch of things globally for the app
5 // set the port to listen to
8 // location for loading "purls"
9 app.setPurlPath("./purls");
11 // location for resources
12 app.setResPath("./res");
14 // purl to load for main page, i.e. /
15 app.setDefaultMainPurl("main");
16 app.addMenu("name1", "/linkto1");
17 app.addMenu("name2", "/linkto2");
18 app.addMenu("name3", "/linkto3");
19 app.setAppName("MyExampleApp");
20 app.setFooterText("<br><br><font size=\"-2\"><i>Copyright PJR.cc 2012 ©</i></font>");