Skip to main content

TemplateEngine

Trait TemplateEngine 

Source
pub trait TemplateEngine {
    // Required method
    fn render(&self, template: &str) -> String;
}
Expand description

Unified template engine trait for all template rendering This provides a consistent interface for rendering templates with various placeholders

Required Methods§

Source

fn render(&self, template: &str) -> String

Render a template with the given context

Implementors§