pub fn substitute( text: &str, path: &str, file: &Path, lookup: &dyn Fn(&str) -> Option<String>, ) -> Result<String>
Substitute in one string. path is the config key, for error messages.
path