Skip to content

0.9.0

Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 17 Mar 08:18
· 41 commits to master since this release
  • Removed Template::from_file, you can still use Template::new to create local templates from strings.
  • Templates has been renamed to Ramhorns.
  • Added Ramhorns::lazy and Ramhorns::from_file, which allows you to do what Template::from_file could do before:
use ramhorns::Ramhorns;

let mut tpls = Ramhorns::lazy("./templates").unwrap();
let tpl = tpls.from_file("hello.html").unwrap();