Code
Last updated
Was this helpful?
Last updated
Was this helpful?
A task's code is a template. In the same way that a Shopify storefront might use a Liquid template to receive requests and render HTML, a task uses its Liquid code to receive events, and render a series of JSON objects. These JSON objects define , , and .
Task code always has access to a set of , which can be used to make decisions about what JSON objects to render.
A task must purposefully consider its , so as to accurately communicate its intent to users and to the Mechanic platform.