function renderAsText(
    template, templateData = undefined, injectedData = undefined) {
  const result = template(templateData || defaultTemplateData, injectedData);
  asserts.assertString(
      result,
      'renderText was called with a template of kind other than "text"');
  return String(result);
}
Renders a Soy template as text.
@param {function(ARG_TYPES, ?CompatibleIj=): *} template The Soy template to
    render.
@param {ARG_TYPES=} templateData The data for the template.
@param {?Object=} injectedData The injected data for the template.
@return {string}
@template ARG_TYPES