code: function replaceYield(tmpl, html) {
        // do nothing if no yield
        if (!reHasYield.test(tmpl)) { return tmpl }
  
        // be careful with #1343 - string on the source having `$1`
        var src = {};
  
        html = html && html.replace(reYieldSrc, function (_, ref, text) {
          src[ref] = src[ref] || text;   // preserve first definition
          return ''
        }).trim();
  
        return tmpl
          .replace(reYieldDest, function (_, ref, def) {  // yield with from - to attrs
            return src[ref] || def || ''
          })
          .replace(reYieldAll, function (_, def) {        // yield without any "from"
            return html || def || ''
          })
      }
docs: /*
  Replace the yield tag from any tag template with the innerHTML of the
  original tag in the page