diff --git a/Cargo.toml b/Cargo.toml index c7ba6e9..ad49935 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" pico-args = "0.5.0" termion = "2.0.1" toml = "0.7.6" -upon = "0.7.1" +upon = "0.8.1" [profile.release] opt-level = "s" diff --git a/src/operation.rs b/src/operation.rs index ecd1e84..34c7af1 100644 --- a/src/operation.rs +++ b/src/operation.rs @@ -99,7 +99,7 @@ pub fn build(targets: &Vec>, template_dir: String, config: &C // render println!(" {ITALIC}rendering{RESET}"); - let render = template.unwrap().render(&context).to_string(); + let render = template.unwrap().render(&engine, &context).to_string(); if let Err(error) = render { println!(" {BOLD}{FAILURE}failed to render template:{RESET}\n {FAILURE}{error}\n {BOLD}skipping{RESET}"); continue;