Skip to content

Releases: maciejhirsz/ramhorns

0.5.0

20 Mar 20:12
Compare
Choose a tag to compare
  • Added zero-copy CommonMark support with #[md] attribute.
  • Added {{& variable}} as an alternative to {{{ variable }}} for unescaped printing.

0.4.0

04 Mar 19:25
Compare
Choose a tag to compare
  • 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.

0.3.0

01 Mar 17:23
Compare
Choose a tag to compare
  • 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>.

0.2.0

01 Mar 17:20
Compare
Choose a tag to compare
  • Turned Encoder into a trait with direct implementation for String to avoid unsafe and some overhead.
  • Added rendering for more types.