code: function replace(template, el, replacements/*...*/) {
      var elOmitted = typeof el !== 'object',
          args = Array.prototype.slice.call(arguments, 1);
  
      if (elOmitted) {
          el = document.createElement('DIV');
          args.unshift(template);
      } else {
          args[0] = template;
      }
  
      el.innerHTML = automat.apply(null, args);
  
      return el;
  }
docs: @summary Replace contents of `el` with `Nodes` generated from formatted template.
  
  @param {string|function} template - See `template` parameter of {@link automat}.
  
  @param {HTMLElement} [el] - Node in which to return markup generated from template. If omitted, a new `<div>...</div>` element will be created and returned.
  
  @param {...*} [replacements] - Replacement values for numbered format patterns.
  
  @return {HTMLElement} The `el` provided or a new `<div>...</div>` element, its `innerHTML` set to the formatted text.
  
  @memberOf module:automat