mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Fix raw tag and correct output
This commit is contained in:
+10
-10
@@ -7,16 +7,16 @@ Raw temporarily disables tag processing. This is useful for generating content
|
|||||||
(eg, Mustache, Handlebars) which uses conflicting syntax.
|
(eg, Mustache, Handlebars) which uses conflicting syntax.
|
||||||
|
|
||||||
<p class="code-label">Input</p>
|
<p class="code-label">Input</p>
|
||||||
```text
|
<pre class="highlight">
|
||||||
{% raw %}
|
<code>{% raw %}
|
||||||
{% raw %}
|
{% raw %}
|
||||||
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.
|
In Handlebars, {{ this }} will be HTML-escaped, but
|
||||||
{% endraw % }
|
{{{ that }}} will not.
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
```
|
{% endraw %}</code>
|
||||||
|
</pre>
|
||||||
|
|
||||||
<p class="code-label">Output</p>
|
<p class="code-label">Output</p>
|
||||||
```liquid
|
```text
|
||||||
Any contents that you put between {% comment %} and {% endcomment %} tags
|
{% raw %}In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.{% endraw %}
|
||||||
is turned into a comment.
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user