From 62f782c7c98c9bf200b9d2bb4161ffd21b9ae401 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 11 Mar 2024 21:53:28 +0100 Subject: [PATCH] Move template_context to top level for backwards compatibility --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index 3c79985..790d9cc 100644 --- a/src/config.rs +++ b/src/config.rs @@ -59,6 +59,9 @@ pub fn read_config(repo: &Path) -> Result { lines.push(format!( "config = utils.merge(config, utils.load_toml {old_config:?})" )); + lines.push(format!( + "config = utils.merge(config, config.template_context)" + )) } lines.push("-- Changes can be added to the `config` object".to_owned()); lines.push("".to_owned());