0.9.0
maciejhirsz
released this
17 Mar 08:18
·
41 commits
to master
since this release
- Removed
Template::from_file
, you can still useTemplate::new
to create local templates from strings. Templates
has been renamed toRamhorns
.- Added
Ramhorns::lazy
andRamhorns::from_file
, which allows you to do whatTemplate::from_file
could do before:
use ramhorns::Ramhorns;
let mut tpls = Ramhorns::lazy("./templates").unwrap();
let tpl = tpls.from_file("hello.html").unwrap();