Shopify Liquid Template
Liquid is a template language created by shopify and written in ruby.
Shopify liquid template. Any elements that are repeated in a theme ex. Template considerations contentforheader and contentforlayout. Site navigations header footer etc should be placed inside themeliquid. 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 the backbone of all shopify themes and is used to load dynamic content to the pages of online stores. So far in our shopify tutorial series weve looked at a lot of concepts relating to how liquid works in shopify themes. The template object has a handful of attributes.
In this article id like to take a more in depth look at one particular template productliquid. All other templates are rendered inside of themeliquid. Returns the name of the templates parent directory. Referencing just template returns the name of the template used to render the current page with the liquid extension omitted.
It is now available as an open source project on github and used by many different software projects and companies. If you are new to shopify themes productliquid is the template that is rendered by default whenever a customer views a product detail page. Liquid uses a combination of tags objects and filters to load dynamic content. Tags make up the programming logic that tells templates what to do.
Input if youre on the productalternateliquid template template output.