mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Begin work on input/output standardization
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
title: Handles
|
||||
---
|
||||
|
||||
sss A handle is used to access the attributes of a Liquid object. By default, the handle is the object's title in lowercase with any spaces and special characters replaced by hyphens (-).
|
||||
A handle is used to access the attributes of a Liquid object. By default, the handle is the object's title in lowercase with any spaces and special characters replaced by hyphens (-).
|
||||
|
||||
For example, a page with the title "About Us" can be accessed in Liquid via its handle `about-us` as shown below:
|
||||
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ title: Operators
|
||||
|
||||
Liquid includes many logical and comparison operators.
|
||||
|
||||
### Basic Operators
|
||||
## Basic Operators
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
@@ -63,7 +63,7 @@ You can use multiple operators in a tag:
|
||||
{% endraw %}{% endhighlight %}
|
||||
</div>
|
||||
|
||||
### contains
|
||||
## contains
|
||||
|
||||
`contains` checks for the presence of a substring inside a string.
|
||||
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ The current user is
|
||||
|
||||
Arrays hold lists of variables of any type.
|
||||
|
||||
#### Accessing items in arrays
|
||||
### Accessing items in arrays
|
||||
|
||||
To access all of the items in an array, you can loop through each item in the array using a [for](/tags/#for) or [tablerow](/tags/#tablerow) tag.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user