Shopify Liquid Template Language
Posted By : Babbandeep Singh | 23-Sep-2018
Website designers and developers can use a template language to create
Liquid syntax
Like traditional programming languages, liquids have a syntax, interaction with variables, and structures like output and logic. Due to its readable syntax, it is easy to identify liquid structures, and can be separated from two sets of delimiters from HTML: Double curly brace delimiters {{}}, which indicates output, and curly brace percent delimiters {% %}, Which indicates logic and control flow.
There are three principal characteristics of Liquid code:
- Objects
- Tags
- Filters
Objects
Liquid production pieces of data from a Shopify Administrator In the theme template, the object is wrapped in double curly brace delimiters {{}}.
Tags
Liquid tag templates are used to create logic and control flow. Curly brace percent delimiters {%%} and the text they keep does not produce any visible output when the webpage is provided. This allows you to assign conditions on the variable and create situations or loops without showing any liquid argument on the page.
Filters
Liquid filters are used to modify the output of numbers, stars, objects, and variables. They are placed within an output tag {{}}, and they are represented by a pipe character "|".
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Babbandeep Singh
Babbandeep has experience in web development focusing on HTML, CSS, Bootstrap, JavaScript, Jquery, WordPress, Codeigniter, Magento, PHP, and MySQL. In his free time, he likes to listen music.