code: function (filePath, cb) {
              filePath = getFileWithExt(filePath);
              if (cb) {
                  fs.readFile(filePath, function (err, data) {
                      if (err) {
                          cb(err);
                      } else {
                          cb(null, data.toString('utf8'));
                      }
                  })
              } else {
                  try {
                      var data = fs.readFileSync(filePath);
                  } catch (err) {
                      throw err;
                  }
                  return data.toString('utf8');
              }
          }
docs: 根据视图文件路径获取文件。Get view file according to the file path.
  @param filePath
  @param cb