mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 00:40:40 -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.
|
||||
|
||||
<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 %}
|
||||
{% raw %}
|
||||
In Handlebars, {{ this }} will be HTML-escaped, but
|
||||
{{{ that }}} will not.
|
||||
{% endraw %}
|
||||
{% 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 %}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user