I know the flask function render_template. I have to give the file name of the template. But now I want to render the string of a template (that is the content
render_template
Actually you can call jinja2 render function directly:
jinja2.Template("I am {{ var }}").render(**kargs)
When not working with flask, this is useful