Website Building » Shopify » What Language Is Shopify Liquid?

What Language Is Shopify Liquid?

Last updated on October 1, 2022 @ 5:29 pm

Shopify Liquid is a versatile, open-source template language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts. Liquid has been in production use at Shopify since 2006 and is now used by many other hosted web applications.

Liquid is written in Ruby and has a syntax similar to that of Ruby’s control structures, object-orientation, and standard library.

However, Liquid does not have access to the full Ruby language; some Ruby features are deliberately left out for security reasons. For example, Liquid does not allow arbitrary code execution, making it safe to use in shared hosting environments.

PRO TIP: Shopify Liquid is a template language used to power themes in the Shopify platform. It is written in Ruby and includes a number of tags, filters, and variables that allow you to control the output of your templates. While Liquid is relatively easy to use, it is important to be aware that it is a programming language and as such can be used to perform malicious actions if not used correctly. If you are new to Liquid, we recommend reading the official documentation before using it in your themes.

Liquid was designed to be easy to use, fast to parse, and secure. It is used in many different places within Shopify themes, such as:

  • Outputting content from CMS objects like articles and blog posts
  • Loading dynamic data from the Shopify API
  • Generating HTML forms

In addition to being used by Shopify themes, Liquid is also used by the Jekyll static site generator and the Octopress blogging platform.

Shopify Liquid is a versatile template language that is used to load dynamic content on storefronts. It is written in Ruby and has a syntax similar to that of Ruby’s control structures, object-orientation, and standard library. However, Liquid does not allow arbitrary code execution, making it safe to use in shared hosting environments.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.