HTML between extension tags
<p>Lets say I have an extension in Jinja. I want the extension to have the form: </p>

<pre><code>{% start %}
    &lt;h1&gt;{{ something }}&lt;/h1&gt;
    &lt;p&gt;{{ something.else }}&lt;/p&gt;
    {% for content in lst %}
        &lt;h3&gt;{{ i.name }}&lt;/h3&gt;
    {% endfor %}
{% end %}
</code></pre>

<p>In my extension, I want to have access to the raw text between start and end, so this: </p>

<pre><code>&lt;h1&gt;{{ something }}&lt;/h1&gt;
&lt;p&gt;{{ something.else }}&lt;/p&gt;
{% for content in lst %}
    &lt;h3&gt;{{ i.name }}&lt;/h3&gt;
{% endfor %}
</code></pre>

<p>I would like that in my extension. How could I do that? I have poured over the jinja documentation to no avail. </p>

<p>If your desire output is {{something}}, then you can use "raw" block in jinja.</p>

<pre><code>{% raw %}
&lt;h1&gt;{{ something }}&lt;/h1&gt;
{% endraw %}
</code></pre>

<p>It will print "{{something}}" (with curly braces).</p>

python flask jinja2