function renderAsElement(
    template, templateData = undefined, injectedData = undefined,
    domHelper = undefined) {
  return convertToElementInternal(
      template(templateData || defaultTemplateData, injectedData), domHelper);
}
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.
@param {function(ARG_TYPES, ?CompatibleIj=): *} template The Soy
    template defining the element's content.
@param {ARG_TYPES=} templateData The data for the template.
@param {?Object=} injectedData The injected data for the template.
@param {?googDom.DomHelper=} domHelper The DOM helper used to create DOM
    nodes; defaults to `goog.dom.getDomHelper`.
@return {!Element} Rendered template contents, wrapped in a parent DIV
    element if necessary.
@template ARG_TYPES