Skip to main content

replace_vars

Function replace_vars 

Source
pub fn replace_vars<F>(input: &str, f: F) -> Result<Cow<'_, str>>
where F: Fn(&str) -> Result<String>,
Expand description

Replaces variables in the form $VAR_NAME with text returned from a function.