Outputting Literal curly braces in Liquid templates
This is the only thing that worked from me. Lifted from here:
{{ "{{ this " }}}}
I needed this because I wanted to reference the site
global variable from inside a mustache template.
You can also use raw:
{% raw %}
...lots of liquid code goes here and it doesn't get interpreted...
{% endraw %}
What about using the numeric HTML entities {
and }
for {
and }
respectively - presumably this is to be output as HTML?
EDIT: Forgive me, I'm not too familiar with liquid (so this might be very wrong), but can you assign your {{ example }}
special value to a variable and output that? May be something like:
{% assign special = '{{ example }}' %}
{{ special }}