pub fn freplace(s: String, args: &[(&str, &str)]) -> String
Expand description
Replace variables in the given string with the given dictionary.
The expected format to replace is {name}
, where name
is the first string
in the dictionary entry tuple.