expand_template

Function expand_template 

Source
pub fn expand_template(content: &str, vars: &HashMap<String, String>) -> String
Expand description

Replace {{VARIABLE}} placeholders in content with values from vars.

Placeholders that have no corresponding key in vars are left unchanged (the original {{VARIABLE}} text is preserved).

Mirrors expandTemplate() in frontend/app/view/agent/agent-model.ts.