Path 1: 1 calls (1.0)

'{{ config }}' (1)

{'config': 42} (1)

stream_with_context..generator def (1)

1def stream_template_string(source: str, **context: t.Any) -> t.Iterator[str]:
2    """Render a template from the given source string with the given
3    context as a stream. This returns an iterator of strings, which can
4    be used as a streaming response from a view.
5
6    :param source: The source code of the template to render.
7    :param context: The variables to make available in the template.
8
9    .. versionadded:: 2.2
10    """
11    app = current_app._get_current_object()  # type: ignore[attr-defined]
12    template = app.jinja_env.from_string(source)
13    return _stream(app, template, context)