minor changes

This commit is contained in:
coderaiser 2013-03-18 10:08:53 -04:00
parent e166eb9ca8
commit df2fb884ec
2 changed files with 9 additions and 7 deletions

View file

@ -23,9 +23,11 @@
INDEX = HTMLDIR + 'index.html',
CONFIG_PATH = JSONDIR + 'config.json',
CA = DIR + 'ssl/sub.class1.server.ca.pem',
KEY = DIR + 'ssl/ssl.key',
CERT = DIR + 'ssl/ssl.crt',
TEMPLATEPATH= HTMLDIR + 'file.html',
PATHTEMPLATE_PATH = HTMLDIR + 'path.html',

View file

@ -9,17 +9,17 @@ var CloudFunc, exports, Util;
*/
var FS;
if(exports){
CloudFunc = exports;
if(!global.cloudcmd)
return console.log(
'# cloudfunc.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for generate html from json.' + '\n' +
'# ' + '\n' +
'# http://coderaiser.github.com/cloudcmd' + '\n');
'# cloudfunc.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for generate html from json.' + '\n' +
'# ' + '\n' +
'# http://coderaiser.github.com/cloudcmd' + '\n');
Util = global.cloudcmd.main.util;
CloudFunc = exports;
}
else
CloudFunc = {};