Releases: maciejhirsz/ramhorns
Releases · maciejhirsz/ramhorns
1.0.1
1.0.0
- Ramhorns is now using the MPL-2.0 license (#66, #73)
- [BREAKING]
Ramhorns::get
now takes&str
as an argument (see #70, #69, thanks to @lcnr for reporting) - Added a method to manually insert a template parsed from source by @grego (#67)
- Added
rename_all
attribute similar toserde
and optional index-based sections by @tiagolobocastro (#63) - Implemented
Debug
forRamhorns
&Template
(#72, thanks to @dsaghliani for reporting) - Updated dependencies (#64, #68, #71)
Full Changelog: v0.14.0...v1.0.0
0.14.0
This patch adds great work from @grego:
- You can now nest sections in fields such that instead of writing
{{#section}}{{field}}{{/section}}
you can just write{{section field}}
. You can also use this nesting for opening and closing of sections (#59). - The main
Ramhorns
struct can now take a custom hasher as a generic param for its internal partialsHashMap
(also #59). - Updated dependencies,
pulldown_cmark
is now an optional dependency (enabled by default).
0.13.0
- Breaking:
#[md]
has been replaced with#[ramhorns(md)]
for consistency. (#56) - Adds the
#[ramhorns(callback = path::to::fn)]
attribute which can execute arbitrary code for inserting values into template, seetests/main.rs
for an example. (#56, #58) - Adds functions extend_from_folder and extend_from_folder_with_extension to include templates from another folder in the collection. (#57)
0.12.0
- Added a new error variant:
Error::NotFound(Box<str>)
which contains the name of a partial for which a template file couldn't be found.