feature(tmpl) mv index, auth to html

This commit is contained in:
coderaiser 2015-06-11 02:35:20 -04:00
parent 81a958c31a
commit ae75d3449f
6 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
var Util, DOM, CloudFunc, join;
(function(scope, Util, DOM, CloudFunc, join) {
(function(scope, Util, DOM, CloudFunc) {
'use strict';
scope.CloudCmd = new CloudCmdProto(Util, DOM, CloudFunc);
@ -515,4 +515,4 @@ var Util, DOM, CloudFunc, join;
}
}
})(this, Util, DOM, CloudFunc, join);
})(this, Util, DOM, CloudFunc);

View file

@ -2,10 +2,11 @@
'use strict';
var DIR = __dirname + '/../../',
DIR_HTML = DIR + 'tmpl/',
DIR_TMPL = DIR + 'tmpl/',
DIR_HTML = DIR + 'html/',
DIR_LIB = DIR + 'lib/',
DIR_SERVER = __dirname + '/',
DIR_FS = DIR_HTML + 'fs/',
DIR_FS = DIR_TMPL + 'fs/',
fs = require('fs'),
@ -23,7 +24,7 @@
CloudFunc = require(DIR_LIB + 'cloudfunc'),
PATH_INDEX = DIR_FS + 'index.hbs',
PATH_INDEX = DIR_HTML + 'index.html',
TMPL_PATH = [
'file',
@ -144,7 +145,7 @@
response : response,
gzip : true,
name : name,
mime : 'text/html'
//mime : 'text/html'
};
if (!isAuth && !isFS)