Skip to main content

interpolate

Function interpolate 

Source
pub fn interpolate(template: &str, ctx: &Context) -> String
Expand description

Interpolate {name}, {0}..{9}, {stdin}, and {{/}} escapes.

Unknown {xyz} placeholders are left as-is with a tracing::warn!. This is intentional: a step that references {1} but received no positional args should degrade gracefully rather than hard-error.