From a7080991629ae07dd58fe9b513947aa89b882ed4 Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Mon, 3 Oct 2016 21:54:46 +0200 Subject: [PATCH] Prove Html to template code. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cd75c4d..d06fd47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ impl Template { "mod template_{name} {{\n\ use std::io::{{self, Write}};\n\ #[allow(unused)]\n\ - use templates::ToHtml;\n\ + use ::templates::{{Html,ToHtml}};\n\ {preamble}\n\ pub fn {name}{type_args}(out: &mut Write{args})\n\ -> io::Result<()> {type_spec}{{\n\ @@ -30,7 +30,7 @@ impl Template { Ok(())\n\ }}\n\ }}\n\ - pub use templates::template_{name}::{name};\n\n", + pub use ::templates::template_{name}::{name};\n\n", preamble = self.preamble .iter() .map(|l| format!("{};\n", l))