I was playing around with the idea of this post and I found that my take on it just breaks Liquid.
/cc @SLaks
This is what I would expect to work:
{% assign endraw = '{% endraw %}' %} contents: _{{endraw}}_
This is how I managed to work around it:
{% assign endraw = '{% endraw %' | append: '}' %} contents: _{{endraw}}_
... and as a bonus this one even throws an error:
{% assign endraw = '{% endraw ' | append: '%}' %}
Liquid error (line 123): wrong number of arguments (1 for 2)
I was playing around with the idea of this post and I found that my take on it just breaks Liquid.
/cc @SLaks
This is what I would expect to work:
{% assign endraw = '{% endraw %}' %} contents: _{{endraw}}_This is how I managed to work around it:
{% assign endraw = '{% endraw %' | append: '}' %} contents: _{{endraw}}_... and as a bonus this one even throws an error:
{% assign endraw = '{% endraw ' | append: '%}' %}