dist/tulipan.cjs.js
/**
 * A factory that can be used to create instances of a
 * fragment. Caches the compiled linker if possible.
 *
 * @param {TurpialCore} vm
 * @param {Element|String} el
 */
A factory that can be used to create instances of a
fragment. Caches the compiled linker if possible.

@param {TurpialCore} vm
@param {Element|String} el
A factory that can be used to create instances of a fragment . Caches the compiled linker if possible . @param { TurpialCore } vm @param { Element|String } el
function FragmentFactory(vm, el) {
  this.vm = vm;
  var template;
  var isString = typeof el === 'string';
  if (isString || isTemplate(el) && !el.hasAttribute('tp-if')) {
    template = parseTemplate(el, true);
  } else {
    template = document.createDocumentFragment();
    template.appendChild(el);
  }
  this.template = template;
  var linker;
  var cid = vm.constructor.cid;
  if (cid > 0) {
    var cacheId = cid + (isString ? el : getOuterHTML(el));
    linker = linkerCache.get(cacheId);
    if (!linker) {
      linker = compile(template, vm.$options, true);
      linkerCache.put(cacheId, linker);
    }
  } else {
    linker = compile(template, vm.$options, true);
  }
  this.linker = linker;
}
function FragmentFactory ( vm , el ) { this . vm = vm ; var template ; var isString = typeof el === 'string' ; if ( isString || isTemplate ( el ) && ! el . hasAttribute ( 'tp-if' ) ) { template = parseTemplate ( el , true ) ; } else { template = document . createDocumentFragment ( ) ; template . appendChild ( el ) ; } this . template = template ; var linker ; var cid = vm . constructor . cid ; if ( cid > 0 ) { var cacheId = cid + ( isString ? el : getOuterHTML ( el ) ) ; linker = linkerCache . get ( cacheId ) ; if ( ! linker ) { linker = compile ( template , vm . $options , true ) ; linkerCache . put ( cacheId , linker ) ; } } else { linker = compile ( template , vm . $options , true ) ; } this . linker = linker ; }
A factory that can be used to create instances of a
 fragment.
A factory that can be used to create instances of a fragment .
// linker can be cached, but only for components