Replaced the old renderer file with a new renderer file.

This commit is contained in:
Tom Alexander
2020-05-31 18:18:21 -04:00
parent 283430a45b
commit acb8dfb58e
5 changed files with 1061 additions and 1062 deletions

View File

@@ -51,12 +51,12 @@ fn main() {
.expect("There should be more than 1 template")
.name;
let breadcrumbs = vec![&context as &dyn IntoContextElement];
println!(
"{}",
dust_renderer
.render(main_template_name, &breadcrumbs)
.expect("Failed to render")
);
// println!(
// "{}",
// dust_renderer
// .render(main_template_name, &breadcrumbs)
// .expect("Failed to render")
// );
}
fn template_from_file<'a>(file_path: &str, file_contents: &'a str) -> CompiledTemplate<'a> {