jinja2 load template from string: TypeError: no loader for this environment specified : <p>I'm using Jinja2 in Flask. I want to render a template from a string. I tried the following 2 methods:</p>

<pre><code> rtemplate = jinja2.Environment().from_string(myString)
 data = rtemplate.render(**data)
</code></pre>

<p>and</p>

<pre><code> rtemplate = jinja2.Template(myString)
 data = rtemplate.render(**data)
</code></pre>

<p>However both methods return:</p>

<pre><code>TypeError: no loader for this environment specified
</code></pre>

<p>I checked the manual and this url: <a href="https://gist.github.com/wrunk/1317933" rel="noreferrer">https://gist.github.com/wrunk/1317933</a></p>

<p>However nowhere is specified to select a loader when using a string.</p>
