A short day today. I started looking at Liquid and see what I can do with it and how.

What I first learned about Liquid on Shopify documentation is:

Liquid is an open-source, Ruby-based template language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts.

Liquid uses a combination of tags, objects, and filters to load dynamic content. They are used inside Liquid template files, which are a group of files that make up a theme.

Tags

Liquid tags are the programming logic that tells templates what to do. Tags are wrapped in: { % % }. (if, for, …)

Objects

Liquid objects contain attributes to output dynamic content on the page. For example, the product object contains an attribute called title that can be used to output the title of a product.

Liquid objects are also often refered to as Liquid variables.

To output an object’s attribute on the page, wrap them in { { } }

There is also a list of global objects described in the documentation.

Filters

Filters are simple methods that modify the output of numbers, strings, variables and objects. They are placed within an output tag { { } } and are separated with a pipe character .

Another nice documentation is on github.

P.S. For the moment I have some problems with the code tag.