"--target" : 'Target Directory (where html files go)',
"--cacheDirectory": 'Cached Files Directory',
"--conf" : 'Read From a Configuration file', // was c. - configuration file.. - parsed with JSON.parse
- "--template" : 'Template Directory', // was t.
+ "--templateDir" : 'Template Directory', // was t.
// "recurse": false, // was r. - not supported..
"--ext" : 'Extension of code files to read (normally js)', // was x.
"--publishExt" : 'Extension of html files to write (normally html)',
"target" : '', // was d. ?? source directory (needed to put temporary files..)
"cacheDirectory" : '',
"conf" : '', // was c. - configuration file.. - parsed with JSON.parse
- "template": '', // was t.
+ "templateDir": '', // was t.
// "recurse": false, // was r. - not supported..
"ext": 'js', // was x.
"publishExt" : 'html',
"disablecache": '', // was C
"define" : [], // was D.
"handler" : [], // was H -- not supported..
+
+
+ "version" : "1.0",
+ "copyright" : "LGPL",
+
LOG : {
warn : function(str) {
print("Warn: " +str );
});
- if (!this.template) {
+ if (!this.templateDir) {
throw {
name: "ArgumentError",
- message: "No template Directory specified"
+ message: "No templateDir Directory specified"
};
}
- if (this.template[0] !='/') {
- this.template = this.baseDir + '/' + this.template;
+ if (this.templateDir[0] !='/') {
+ this.templateDir = this.baseDir + '/' + this.templateDir;
}
message: "No directory specified"
};
}
-
+
+ print(JSON.stringify(this, null,4));
// should cacheDirectory be a subdirectory of target??
// if not set..