Escaping Liquid Template Tags


While this tutorial has content that we believe is of great benefit to our community, we have not yet tested or edited it to ensure you have an error-free learning experience. It's on our list, and we're working on it! You can help us out by using the "report an issue" button at the bottom of the tutorial.

Use the {% raw %} tag if you’re working on a Jekyll template and need to be able to escape some of the liquid tags. This is especially useful to be able to include Mustache or Handlebar tags:

{% raw %}
  I want {{% this %}} now!
{% endraw %}

Inside escaped content, you can include non-escaped tags using three curly brackets:

{% raw %}
  I want {{% this %}},
  but I don't want {{{ that }}}!
{% endraw %}
Creative Commons License