async renderFile(asyncapiDocument, filePath, extraTemplateData = {}) {
    if (isReactTemplate(this.templateConfig)) {
      return await renderReact(asyncapiDocument, filePath, extraTemplateData, this.templateDir, this.templateContentDir, TRANSPILED_TEMPLATE_LOCATION, this.templateParams, this.debug, this.originalAsyncAPI);
    }
    const templateString = await readFile(filePath, 'utf8');
    return renderNunjucks(asyncapiDocument, templateString, filePath, extraTemplateData, this.templateParams, this.originalAsyncAPI, this.nunjucks);
  }
Renders the content of a file and outputs it.

@private
@param {AsyncAPIDocument} asyncapiDocument AsyncAPI document to pass to the template.
@param {String} filePath Path to the file you want to render.
@param {Object} [extraTemplateData] Extra data to pass to the template.
@return {Promise<string|TemplateRenderResult|Array<TemplateRenderResult>|undefined>}