Implement the new render functions.

This commit is contained in:
Tom Alexander
2020-05-05 19:51:07 -04:00
parent a3bb8e47c1
commit 26fe996b0d
2 changed files with 104 additions and 4 deletions

View File

@@ -44,10 +44,11 @@ fn main() {
.first()
.expect("There should be more than 1 template")
.name;
let breadcrumbs = vec![&context as &dyn ContextElement];
println!(
"{}",
dust_renderer
.render(main_template_name, &context)
.new_render(main_template_name, &breadcrumbs)
.expect("Failed to render")
);
}