diff --git a/src/compiler/compiler.rs b/src/compiler/compiler.rs index d12bf43..3d30b39 100644 --- a/src/compiler/compiler.rs +++ b/src/compiler/compiler.rs @@ -9,9 +9,6 @@ use crate::document::document::Document; use crate::document::document::ElemReference; use crate::document::variable::Variable; -use super::navigation::NavEntry; -use super::navigation::Navigation; - #[derive(Clone, Copy)] pub enum Target { HTML, @@ -133,80 +130,128 @@ impl Compiler { result } - pub fn navigation(&self, navigation: &Navigation, document: &dyn Document) -> String - { - let mut result = String::new(); - match self.target() - { - Target::HTML => { - result += r#"
"#; - }, - _ => todo!("") - } - result - } - pub fn footer(&self, _document: &dyn Document) -> String { let mut result = String::new(); match self.target() { Target::HTML => { result += "