Ninjucks escape in markdown

Using ninjuck syntax inside a markdown file to add some code snippet, then processed by 11ty, gets elaborated as ninjuck.

To show it we can use the raw template tag to escape the content:

For example, the following snippet:

{% raw %}
{% raw %}
{% for obj in data %}
  {{obj.prop}}
{% endfor %}
{% endraw %}
{% endraw %}

will be rendered:

{% raw %}
{% for obj in data %}
  {{obj.prop}}
{% endfor %}
{% endraw %}
Published: Oct 9, 2022