Releases: maciejhirsz/ramhorns
Releases · maciejhirsz/ramhorns
0.5.0
- Added zero-copy CommonMark support with
#[md]
attribute. - Added
{{& variable}}
as an alternative to{{{ variable }}}
for unescaped printing.
0.4.0
- Added
&str
name of the field toContent
methods that need it. This is technically a breaking change, but it shouldn't really affect user code. - Added generic impls of
Content
forHashMap
andBTreeMap
.
0.3.0
- Renamed the
Context
trait toContent
, which makes way more sense. - You can now create a
Template<'static>
that owns it's data from aString
s usingTemplate::new
. - Added
Template::from_file
andTemplate::render_to_file
to the API. Template::new
now returns aResult<Template, Error>
.
0.2.0
- Turned
Encoder
into a trait with direct implementation for String to avoidunsafe
and some overhead. - Added rendering for more types.