Skip to main content

interpolate

Function interpolate 

Source
pub fn interpolate(template: &str, vars: &BTreeMap<String, String>) -> String
Expand description

Interpolate $VAR / ${VAR} references in template from vars. An unknown reference is left verbatim (so a literal $ survives), and $$ is an escaped literal dollar sign.