Skip to main content

render_template

Function render_template 

Source
pub fn render_template(
    template: &str,
    variables: &HashMap<String, String>,
    step_results: &HashMap<String, String>,
) -> Result<String>
Expand description

Render a template by substituting {{ var }}, {{ var | filter }}, {{ workload.var }}, {{ vars.var }}, and {{ step.result }} references against the supplied variable + step-result maps.

Supported filters: lower, upper, trim, default.