code: function (file) {
      if (file.substr(file.length - 1) === '/') {
          file = file + 'index.html';
      }
      if (fss.exists(file + '.html')) {
          return file + '.html';
      } else if (fss.exists(file.replace(/\.html$/, ''))) {
          return file.replace(/\.html$/, '');
      } else if (fss.filename(file).indexOf('.') === -1 && fss.exists(file + '/index.html')) {
          return file + '/index.html';
      } else {
          return file;
      }
  }
docs: /*
  Decide which file to serve, mostly by checking for index.html files.