pub fn combine_and_replace_dynamic_items(
input: &[DynamicItem],
variables: &Vec<(String, String)>,
) -> String
Expand description
Combines the split string back into its original form while replacing the variables with their values
let variables = btreemap!{ “a” => “value1”, “b” => “value2” }; [Str(“hello “), Var(“a”), Str(“, “), Var(“b”), Str(“{ “), Var(“c”), Str(“ }}“)] => “hello value1, valuec{ {c} }”