rust_html

Trait Render

Source
pub trait Render {
    // Required method
    fn render(&self) -> Template;
}
Expand description

Render trait for rust_html templates

Implement this trait on a struct to create reusable struct components that you can reuse inside other templates.

Required Methods§

Source

fn render(&self) -> Template

Implementors§