Skip to main content

Module template

Module template 

Source
Expand description

$config.X / $instance.X / $event.X template resolution.

Port of platform/templates.py::substitute_templates. The compiler instantiates one node for many running instances, so config templates are resolved lazily per-event, not at compile time. A node calls resolve_config at the top of process.

Enums§

TemplateError
Template resolution failure.

Functions§

resolve_config
Resolve every $config. / $instance. / $event. string in config against the running instance. Non-template strings and non-string scalars pass through unchanged; arrays and objects are walked recursively.