Home Objects
Objects
Liquid objects contain attributes to output dynamic content on the page. For example, the listing
object contains an attribute called name
that can be used to output the name
of a listing.
Liquid objects are also often refered to as Liquid variables.
To output an object’s attribute on the page, wrap them in {{
and }}
, as shown below:
{{ listing.name }}
#=> <!-- Output: “Yellow Tower” -->
Global Object
Global Object can be used and accessed from any file in your theme, and are defined as global objects, or global variables. They are listing, request, current_account, current_domain, and current_template.