Skip to main content

Module template

Module template 

Source
Expand description

The substitution language of a parameter string. A reference is written between {{ and }}, and the language is substitution only.

The references:

  • {{ partition }}, the partition of the task instance.
  • {{ run.<field> }}, a field of the run: id, the run id of the task instance, or summary, the summary of the graph run as JSON text.
  • {{ upstream.<node>.<path> }}, the output of an upstream node, or the value at a dotted path into it.
  • {{ env.<NAME> }}, an environment variable of the process that renders the template.

A reference to an unset variable fails the task instance. The error of a failed http request includes the URL.

Structs§

RenderContext
The values a Template is rendered against.
RunContext
The fields of the run of a task instance.
Template
A parsed parameter string.

Enums§

RenderError
A reference cannot be resolved against the RenderContext.
TemplateError
The text is not a template.