code: function toFragment(html) {
    if (typeof html === 'function') {
      html = html();
    }
  
    if (html instanceof DocumentFragment) {
      return html;
    } else if (typeof html === 'string') {
      return stringToFragment(html);
    } else if (html instanceof Node) {
      return nodeToFragment(html);
    } else if ('length' in html) {
      return listToFragment(html);
    } else {
      throw new TypeError('Unsupported Template Type: Cannot convert `' + html + '` into a document fragment.');
    }
  }
docs: Convert stuff into document fragments. Stuff can be: * A string of HTML text * An element or text node * A NodeList or HTMLCollection (e.g. `element.childNodes` or `element.children`) * A jQuery object * A script element with a `type` attribute of `"text/*"` (e.g. `<script type="text/html">My template code!</script>`) * A template element (e.g. `<template>My template code!</template>`)