code: function (type, args, htmlpath, projectRoot, pageName) {
      var plugin = plugins.use(args);
      if (plugin[type] !== undefined) {
          return plugin[type](args[0], htmlpath, projectRoot, pageName, concatServerBaseUrl, projectPublishRoot);
      } else {
          return args[0];
      }
  }
docs: 处理匹配的类型
  @param type
  @param args
  @param htmlpath
  @param projectRoot
  @param pageName
  @returns {*}