Reader small image

You're reading from  Shopify Theme Customization with Liquid

Product typeBook
Published inOct 2021
PublisherPackt
ISBN-139781801813969
Edition1st Edition
Tools
Right arrow
Author (1)
Ivan Djordjevic
Ivan Djordjevic
author image
Ivan Djordjevic

Ivan Djordjevic comes from the small town of Prokuplje, Serbia. As a self-taught developer, he spent the first few years working on different projects, but only when he came in contact with Shopify and learned about Liquid that he found himself. In 2016, Ivan joined Shopify Experts under HeyCarson, where he moved to the lead developer position after a few months. Since joining the Shopify family, Ivan found his passion in sharing his knowledge with other developers and guiding them on their way to becoming a Shopify Expert.
Read more about Ivan Djordjevic

Right arrow

Understanding Liquid and its delimiters

One of the two ways that we can discern a Liquid file is by the extension .liquid. Being a template language, a Liquid file is a combination of static and dynamic content:

  • Elements that we write in HTML are called static content, and they stay the same no matter what page we are currently on.
  • On the other side, elements written in Liquid are called dynamic content elements, whose content changes depending on the page we are on.

While our browsers can quickly process the HTML code, they would not know what to do with Liquid code as they do not understand it. We can break up the flow of what happens when we submit a Shopify URL to our browser into five logical steps:

  1. The Shopify server tries to determine which store we are trying to access.
  2. Depending on the type of page we are currently requesting information for, Shopify tries to locate and select the proper Liquid template from the active theme directory.
  3. After...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Shopify Theme Customization with Liquid
Published in: Oct 2021Publisher: PacktISBN-13: 9781801813969

Author (1)

author image
Ivan Djordjevic

Ivan Djordjevic comes from the small town of Prokuplje, Serbia. As a self-taught developer, he spent the first few years working on different projects, but only when he came in contact with Shopify and learned about Liquid that he found himself. In 2016, Ivan joined Shopify Experts under HeyCarson, where he moved to the lead developer position after a few months. Since joining the Shopify family, Ivan found his passion in sharing his knowledge with other developers and guiding them on their way to becoming a Shopify Expert.
Read more about Ivan Djordjevic