(function() { 'use strict'; var DIR = __dirname + '/../../', DIR_HTML = DIR + 'html/', DIR_LIB = DIR + 'lib/', DIR_SERVER = __dirname + '/', DIR_FS = DIR_HTML + 'fs/', fs = require('fs'), mellow = require('mellow'), ponse = require('ponse'), files = require('files-io'), rendy = require('rendy'), exec = require('execon'), minify = require('minify'), format = require('format-io'), config = require(DIR_SERVER + 'config'), CloudFunc = require(DIR_LIB + 'cloudfunc'), PATH_INDEX = DIR_FS + 'index.html', TMPL_PATH = [ 'file', 'panel', 'path', 'pathLink', 'link' ], Template = {}, FS = CloudFunc.FS; module.exports = function(req, res, next) { readFiles(function() { route(req, res, next); }); }; /** * additional processing of index file */ function indexProcessing(options) { var left, right, from, to, keysPanel = '