mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
Updated Liquid for Designers (markdown)
+13
-1
@@ -84,7 +84,8 @@ Here is a list of currently supported tags:
|
|||||||
* **cycle** - Cycle is usually used within a loop to alternate between values, like colors or DOM classes.
|
* **cycle** - Cycle is usually used within a loop to alternate between values, like colors or DOM classes.
|
||||||
* **for** - For loop
|
* **for** - For loop
|
||||||
* **if** - Standard if/else block
|
* **if** - Standard if/else block
|
||||||
* **include** - Includes another template, useful for partials
|
* **include** - Includes another template; useful for partials
|
||||||
|
* **raw** - temporarily disable tag processing to avoid syntax conflicts.
|
||||||
* **unless** - Mirror of if statement
|
* **unless** - Mirror of if statement
|
||||||
|
|
||||||
### Comments
|
### Comments
|
||||||
@@ -95,6 +96,17 @@ Comment is the simplest tag. It just swallows content.
|
|||||||
We made 1 million dollars {% comment %} in losses {% endcomment %} this year
|
We made 1 million dollars {% comment %} in losses {% endcomment %} this year
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Raw
|
||||||
|
|
||||||
|
Raw temporarily disables tag processing.
|
||||||
|
This is useful for generating content (eg, Mustache, Handlebars) which uses conflicting syntax.
|
||||||
|
|
||||||
|
```liquid
|
||||||
|
{% raw %}
|
||||||
|
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.
|
||||||
|
{% endraw %}
|
||||||
|
```
|
||||||
|
|
||||||
### If / Else
|
### If / Else
|
||||||
|
|
||||||
`if / else` should be well known from any imaginable programming language.
|
`if / else` should be well known from any imaginable programming language.
|
||||||
|
|||||||
Reference in New Issue
Block a user