pub fn format_template( template: &str, variables: &HashMap<String, String>, ) -> String
Formats a message by substituting variables in the template.