Fix raw tag and correct output

This commit is contained in:
Brian Jones
2017-03-30 09:58:10 -04:00
parent 2f703b30db
commit 4bd5446a4e

View File

@@ -7,16 +7,16 @@ Raw temporarily disables tag processing. This is useful for generating content
(eg, Mustache, Handlebars) which uses conflicting syntax.
<p class="code-label">Input</p>
```text
{% raw %}
{% raw %}
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.
{% endraw % }
{% endraw %}
```
<pre class="highlight">
<code>{% raw %}
&#123;&#37; raw &#37;&#125;
In Handlebars, {{ this }} will be HTML-escaped, but
{{{ that }}} will not.
&#123;&#37; endraw &#37;&#125;
{% endraw %}</code>
</pre>
<p class="code-label">Output</p>
```liquid
Any contents that you put between {% comment %} and {% endcomment %} tags
is turned into a comment.
```text
{% raw %}In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.{% endraw %}
```