Skip to main content

render_key_value_map

Function render_key_value_map 

Source
pub fn render_key_value_map(
    input: Option<&BTreeMap<String, Value>>,
    context: &Value,
    renderer: &dyn TemplateRenderer,
) -> Result<Vec<(String, String)>>
Expand description

Render a BTreeMap<String, Value> of template key-value pairs into a flat list of (String, String) pairs, expanding arrays into multiple entries with the same key.