Mechanic tags
Mechanic extends Liquid with custom tags that go beyond what standard Liquid provides. These tags are how tasks produce output β defining actions, logging data, raising errors, and more.
Available tags
log β outputs structured data to the task run's log, useful for debugging and auditing
error β raises an error that halts the task run and marks it as failed
assign β an enhanced version of Liquid's assign tag, with support for nested hash key assignment
permissions β explicitly declares Shopify access scopes the task requires, supplementing Mechanic's automatic permission detection
liquid β evaluates a string as a Liquid template at runtime, useful for dynamic template rendering
Last updated
Was this helpful?