Is it possible to {% include file.html %}
without the tags inside it getting rendered?
I've tried
{% include file.html | escape_once %}
which gives an errorrunning it through
{% raw %} {% include file.html %} {% endraw %}
which gives{% include file.html %}
(not surprisingly).
I'm looking for something along the lines of {% include file.html | no_render %}
The reason I can't put the raw tags inside file.html
is that I'm trying to reuse it as a template (it's a bit of a hack).
This would also be good for pages that are trying to self describe. I.e. This useful thing works like this: {% include useful_snippet.html | no_render %}