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
you can use from_string
template = "text {{ hello }}" print app.jinja_env.from_string(template).render(hello='Hello') >> text Hello