Skip to main content

str_inject

Function str_inject 

Source
pub fn str_inject(template: &str, values: Option<&Value>) -> String
Expand description

Substitute {a.b.0} paths from an object or array. Missing paths retain their placeholder, matching the TypeScript and Go utilities.