X-Git-Url: http://git.pjr.cc/?p=nodejsws.git;a=blobdiff_plain;f=examples%2Fsimple%2Fmyapp.js;fp=examples%2Fsimple%2Fmyapp.js;h=aa295406bf3ff5352df53d653e456742ed6a0474;hp=dd24da3096f777ad3cf4ee336b13aa91e70c0ffc;hb=6127f038fce5dbe47be01fdc565c14b5d8d24b80;hpb=fd676c163d4d9499bc90612bbfa09af2e3c3b136 diff --git a/examples/simple/myapp.js b/examples/simple/myapp.js index dd24da3..aa29540 100644 --- a/examples/simple/myapp.js +++ b/examples/simple/myapp.js @@ -8,15 +8,24 @@ app.setPort(8888); // location for loading "purls" app.setPurlPath("./purls"); -// location for resources +// location for static resources app.setResPath("./res"); // purl to load for main page, i.e. / +// this will search for main.js from purls/ (this is the default) app.setDefaultMainPurl("main"); -app.addMenu("name1", "/linkto1"); -app.addMenu("name2", "/linkto2"); -app.addMenu("name3", "/linkto3"); + +// add some menu items for the default menu builder +app.addMenu("Home", "/"); +app.addMenu("SimpleLayout", "/simplelayout"); +app.addMenu("LayoutOnly", "/justlayout"); + +// default name for the application. Used by default section +// builders where a name is required app.setAppName("MyExampleApp"); + +// set some default footer text (typically a copyright notice or something app.setFooterText("

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