This crate is a rewrite of the old mustache crate. It has a different API and is compliant with all* of the Mustache specification, including the optional modules.
Features
This crate supports all of the basic Mustache specification, as well as the inheritance, dynamic name, and lambda extensions. These can be enabled with Cargo feature flags.
[]
# Enable inheritance and dynamic names.
= { = "1.4.3", = ["ext-inheritance", "ext-dyn-names"] }
Additionally, it has a number of feature flags that represent stylistic differences that deviate from the specification.
strict-resolver: Produces a compiler error whenever a partial tag cannot find a source file. This does not apply to dynamic names, if enabled.inline-indentation: Applies indentation to non-standalone tags as well as standalone tags. See [inline-indentation-example.md] for more information.
Finally, the serde feature flag enables support for serde, including serializing and deserializing from data and inputting serde structs directly into the renderer.
Documentation
You can read how to use the Mustache language here on their website. Documentation for this crate is hosted on docs.rs.
Basic example
use HashMap;
use ;