1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pub use self::compiler::{ Compile, CompileExpression, CompiledExpression }; use nodes::Module; use error::Result; use value::Value; use little::{ Template }; use mold::Staging; mod compiler; pub fn compile(env: (), nodes: &Module) -> Result<Template<Value>> { trace!("compile"); let mut stage = Staging::new(); try!(nodes.compile(&mut stage)); Ok(stage.into()) }