Liquid
Last updated
Was this helpful?
Last updated
Was this helpful?
Everything in Mechanic is about , and tasks are written in Liquid â the same template language that Shopify uses for their online store themes, and for many other purposes.
Fundamentally, is a Liquid template for rendering JSON instructions for . In the same way that a Liquid theme might take Shopify store data and render HTML for a web browser, Mechanic task code takes incoming , and uses them as variables to render JSON objects, defining work to be performed.
Open-source Liquid is a template language created by Shopify, used by many developers for many projects and products in, around, and beyond Shopify. ()
Shopify Liquid is the implementation of open-source Liquid used within Shopify itself, including Shopify's Online Store themes. Shopify Liquid contains many filters and objects that are not a part of open-source Liquid.
Mechanic Liquid is the implementation of open-source Liquid used here, within Mechanic. It contains many filters and objects that are unique to Mechanic, in addition to some unique language features.
make it easier to manage data in the context of Mechanic tasks. Mechanic Liquid also includes support for many Shopify Liquid filters!
create support for and .
represent specific Mechanic and Shopify resources.
make it easier for task writers to render JSON objects. These tags include , , and . We've also enhanced the tag to support assigning values within arrays and hashes.