docs: function (context, templateArg) {
          var template = templateArg || this.template;
          if (!template) throw new Error('Template string or function needed.');
          var newDom = isString(template) ? template : template.call(this, context || this);
          if (isString(newDom)) newDom = domify(newDom);
          var parent = this.el && this.el.parentNode;
          if (parent) parent.replaceChild(newDom, this.el);
          if (newDom.nodeName === '#document-fragment') throw new Error('Views can only have one root element, including comment nodes.');
          this.el = newDom;
          return this;
      }