Skip to main content

render_template

Function render_template 

Source
pub fn render_template(path: &str, ctx: &RenderContext) -> Option<Vec<u8>>
Expand description

Renders a template by replacing placeholders according to the context. Returns None if the template does not exist.