Skip to main content

format_template

Function format_template 

Source
pub fn format_template(
    template: &str,
    fields: &[(&str, &str)],
) -> Result<String, ExportFormatError>
Expand description

Substitute {name} fields in a Python format string, with {{ and }} standing for literal braces: the subset of str.format upstream’s export templates use. Conversions (!r) and format specs (:>10) are refused.