Skip to main content

Module interpolate

Module interpolate 

Source
Expand description

${{ env.NAME }} string templates — the safe stand-in for upstream’s !js interpolation. No expression evaluation.

Functions§

interpolate_node
Recursively expand templates in every string of the value tree using process environment variables.
interpolate_node_with
Recursively expand templates using a caller-supplied lookup (see interpolate_str_with).
interpolate_str
Expand every ${{ env.NAME }} template inside the string using process environment variables.
interpolate_str_with
Expand templates using a caller-supplied lookup, which maps an expression like env.NAME to its value. Ok(None) means the expression is well-formed but has no value; an Err rejects the expression outright.