Skip to main content

render

Function render 

Source
fn render(ctx: &Context, template: &str, body: &Value) -> String
Expand description

Renders a template: {{body.path}} from the parsed body, {{$var}} via crate::vars::resolve, and $var interpolation on the literal text between placeholders. Unknown placeholders resolve to the empty string; values substituted from the body are not re-interpolated.