mirror of
https://github.com/kemko/liquid.git
synced 2026-01-03 08:45:42 +03:00
Fix raw tag and correct output
This commit is contained in:
20
tags/raw.md
20
tags/raw.md
@@ -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