Skip to main content

render_template

Function render_template 

Source
pub fn render_template(template: &str, vars: &[(&str, &str)]) -> String
Expand description

Substitute {version}, {os}, {arch}, {file}, {ext} placeholders in a URL template. Joins base + tail if the template ends with /.