renderAsElement(template, templateData = undefined) {
    const element = soy.renderAsElement(
        template, templateData, this.getInjectedData_(), this.dom_);
    this.handleRender(element, SanitizedContentKind.HTML);
    return element;
  }
Renders a Soy template into a single node. If the rendered HTML
string represents a single node, then that node is returned.
Otherwise, a DIV element is returned containing the rendered nodes.
Delegates to `soy.renderAsElement`.
@param {function(ARG_TYPES, ?soy.CompatibleIj=): *} template The Soy
    template defining the element's content.
@param {ARG_TYPES=} templateData The data for the template.
@return {!Element} Rendered template contents, wrapped in a parent DIV
    element if necessary.
@template ARG_TYPES