template
Builds a string by running the input through a Handlebars template. Typically paired with an exec channel.
Parameters
templaterequiredThe Handlebars template string. It can reference the following fields:
effect- information about the effect that emitted the input - currently only includeskey, the key of the effecttimestamp- the logical timestamp of the inputdata- the input data generated by the effect'sgenerator
Examples
cURL
type: exec
format:
type: template
template: >-
curl -sS --fail-with-body -X {{data.method}} "${API_BASE_URL:-http://localhost:5173}{{{data.path}}}"
{{#if data.body}}-H 'Content-Type: application/json' --data '{{json data.body}}'{{/if}}