githubEdit

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

  • action β€” defines an action to be performed after the task finishes rendering (e.g. a Shopify API call, an email, an HTTP request)

  • 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?