code: function inlineJSWidgetHtml(content, options, file) {
          var reg = /__getWidgetHtml\s*\(\s*([^\)\<]+?)\s*,/ig;
          content = content.replace(reg, function(s, p) {
              var jp = p.trim().replace(/(^['"]*)|(['"]*$)/g, '');
              if(jp){
                  var sp = path.join(options.root, jp);
                  if(!fs.existsSync(sp)) sp = path.resolve(path.dirname(file.path), jp);
                  //如果文件存在
                  if(fs.existsSync(sp)) {
                      var c = fs.readFileSync(sp, 'utf-8');
                      c = c.replace(/(\r\n)+|(\n)+/g, "").replace(/\'/g, "\\'");
                      s = s.replace(jp, c);
                  }                
              }            
              return s;
          });
          return content;
      }
docs: 内联JS中的组件html