first commit
[nodejsws.git] / lib / myparse.js
1 var path = require("fs");
2
3 function useBody() {
4         return;
5 }
6
7 function parse(base, purl, response, servicer) {
8         var pathCheck = "./lib/web_"+base+".js";
9         console.log("path check on ", pathCheck);
10         fs.exists(pathCheck, function (exists) {
11                 if(!exists) console.log("not exists: ", base);
12                 else {
13                         servicer(purl, response, parse);
14                         console.log("base exists: ", base);
15                 }
16         });
17 }
18
19 exports.useBody = useBody;
20 exports.parse = parse;
21 exports.process = process;