Skip to main content

TemplateEngine

Trait TemplateEngine 

Source
pub trait TemplateEngine: Send + Sync {
    // Required methods
    fn render(&self, template: &str, context: &Value) -> Result<String>;
    fn reload(&self) -> Result<()>;
}

Required Methods§

Source

fn render(&self, template: &str, context: &Value) -> Result<String>

Source

fn reload(&self) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§