[][src]Trait sailfish::TemplateOnce

pub trait TemplateOnce: Sized {
    fn render_once_to_string(self, buf: &mut String) -> Result<(), RenderError>;

    fn render_once(self) -> RenderResult { ... }
}

Template that can be rendered with consuming itself.

Required methods

fn render_once_to_string(self, buf: &mut String) -> Result<(), RenderError>

👎 Deprecated since 0.2.1:

This function may be removed in the future due to performance issue

Render the template and append the result to buf.

This method never returns Err, unless you explicitly return RenderError inside templates

Loading content...

Provided methods

fn render_once(self) -> RenderResult

Render the template and return the rendering result as RenderResult

This method never returns Err, unless you explicitly return RenderError inside templates

Loading content...

Implementors

Loading content...