Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What language is in ".liquid" files?

Tags:

shopify

I got some a small assignment to add a feature to a theme made on Shopify. I am good with PHP but shopify uses .liquid files. I want to know how it works like this code snippet

{{% if payment.gateway | name %}}

Though they have given the documentation but I want to know how I can work on this language as I don`t have shopify paid version and I want to try this before paying for it. Can anyone help me

like image 711
Akansh Avatar asked Apr 19 '14 19:04

Akansh


People also ask

What is .Liquid code?

The Liquid code is essentially a placeholder. It's used to retrieve specific referenced data from your Shopify store—like your store name, product details, images, etc. —when the code is compiled and sent to the browser. Then, the browser grabs assets like your Javascript and CSS files to display your customized theme.

What language are Shopify themes written in?

Liquid is an open-source template language created by Shopify and written in Ruby. 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.

Is Shopify Liquid or HTML?

In your Shopify store, static elements are written in HTML, and dynamic elements are written in Liquid.

Is Shopify Liquid a programming language?

Liquid is a coding language template that was created by Shopify. It is also written in Ruby, an open source programming language. Liquid is finally available as an open source project on GitHub.


2 Answers

It's Shopify's templating language, Liquid.

You can sign up to the Shopify Partner program and play with Liquid in a dev shop for free.

Jekyll also uses Liquid, if you're interested.

like image 83
Steph Sharp Avatar answered Sep 27 '22 18:09

Steph Sharp


Liquid is an open-source template language created by Shopify and written in Ruby. It is the backbone of Shopify themes.

like image 30
Arindam Avatar answered Sep 27 '22 17:09

Arindam