Skip to main content

render

Function render 

Source
pub fn render(value: &Value, context: &Value) -> Result<Value, EvalError>
Expand description

Replace {{ path }} references in every string of value, looking paths up in context. A string that is exactly one reference becomes the referenced value itself (so value: "{{expected_docs}}" can be a list); otherwise the referenced values are inserted as text. Unknown references are errors.