mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 15:15:19 -07:00
Migrated from liquid-for-designers v2
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
There are two types of markup in liquid: Output and Tag.
|
There are two types of markup in liquid: Output and Tag.
|
||||||
|
|
||||||
* Output is surrounded by <pre> {{ two curly brackets }} </pre>
|
* Output is surrounded by <pre> {{ two curly brackets }} </pre>
|
||||||
@@ -86,7 +85,6 @@ in the if.
|
|||||||
{% else %}
|
{% else %}
|
||||||
Sorry, you are too young
|
Sorry, you are too young
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
# array = 1,2,3
|
# array = 1,2,3
|
||||||
{% if array includes 2 %}
|
{% if array includes 2 %}
|
||||||
@@ -97,6 +95,7 @@ in the if.
|
|||||||
{% if string includes 'hello' %}
|
{% if string includes 'hello' %}
|
||||||
string includes 'hello'
|
string includes 'hello'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
h2. Case Statement
|
h2. Case Statement
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user