code: function (resourceID, ext, merge) {
              var self = this;
              var staticPath;
              if (_.isEmpty(self.map)) {
                  // map 为空时, 直接拼接路径, 并确保文件存在
                  staticPath = FileLoader.matchFile(path.join(self.staticPath, resourceID) + ext);
                  if (!merge && staticPath) {
                      staticPath = staticPath.substr(staticPath.indexOf(self.staticFolder));
                  }
              } else {
                  var resourceKey = path.join(self.templateFolder, resourceID) + ext;
                  var result = self.map['res'] && self.map['res'][resourceKey];
                  staticPath = result && result.uri;
                  if (merge && staticPath) {
                      staticPath = self.webRootPath + staticPath;
                  }
              }
              return staticPath;
          }
docs: 查询模板文件相关的script和style
  @param resourceID
  @param ext
  @param merge
  @returns {*}