Skip to main content

template_format

Function template_format 

Source
pub fn template_format(template: &str, vars: &[(&str, &str)]) -> String
Expand description

A simple string formatter that supports {name} template substitution.

Substitutes {key} with the provided value.