ramhorns

Fast Mustache template engine implementation in pure Rust.

MPL-2.0 License

Downloads
225.1K
Stars
283
Committers
6

Bot releases are visible (Hide)

ramhorns - 0.4.0

Published by maciejhirsz over 5 years ago

  • Added &str name of the field to Content methods that need it. This is technically a breaking change, but it shouldn't really affect user code.
  • Added generic impls of Content for HashMap and BTreeMap.
ramhorns - 0.3.0

Published by maciejhirsz over 5 years ago

  • Renamed the Context trait to Content, which makes way more sense.
  • You can now create a Template<'static> that owns it's data from a Strings using Template::new.
  • Added Template::from_file and Template::render_to_file to the API.
  • Template::new now returns a Result<Template, Error>.
ramhorns - 0.2.0

Published by maciejhirsz over 5 years ago

  • Turned Encoder into a trait with direct implementation for String to avoid unsafe and some overhead.
  • Added rendering for more types.