Skip to main content

Crate mustache2

Crate mustache2 

Source
Expand description

§Mustache2

This is a rewrite of the original mustache crate, which is currently unmaintained.

Re-exports§

pub use data::Data;
pub use error::Error;

Modules§

data
Data representation used for rendering a template.
error
Error handling utilities.
render
Rendering pipeline for templates.

Functions§

render_once
Render a single Mustache file and return the output. For more control over the rendering process, use RenderManager instead. RenderManager also caches templates across multiple render calls, offering a significant performance improvement if you need to batch render multiple files that use the same partials.