[][src]Function envsubst::substitute

pub fn substitute<T>(
    template: T,
    variables: &HashMap<String, String>
) -> Fallible<String> where
    T: Into<String>, 

Substitute variables in a template string.

Given an input string template, replace tokens of the form ${foo} with values provided in variables.