code: def stream_template(template_name, **context):
      '''
      Some templates can be huge, this function returns an streaming response,
      sending the content in chunks and preventing from timeout.
  
      :param template_name: template
      :param **context: parameters for templates.
      :yields: HTML strings
      '''
      app.update_template_context(context)
      template = app.jinja_env.get_template(template_name)
      stream = template.generate(context)
      return Response(stream_with_context(stream)f stream_template(template_name, **context):
      '''
      Some templates can be huge, this function returns an streaming response,
      sending the content in chunks and preventing from timeout.
  
      :param template_name: template
      :param **context: parameters for templates.
      :yields: HTML strings
      '''
      app.update_template_context(context)
      template = app.jinja_env.get_template(template_name)
      stream = template.generate(context)
      return Response(stream_with_context(stream))
docs: Some templates can be huge, this function returns an streaming response,
      sending the content in chunks and preventing from timeout.
  
      :param template_name: template
      :param **context: parameters for templates.
      :yields: HTML strings