added built-in var to jsondocck

This commit is contained in:
schvv31n 2024-07-04 10:18:57 +01:00
parent eb5e2449c5
commit 12f29e991a

View File

@ -23,7 +23,7 @@ pub fn new(config: &Config) -> Cache {
Cache {
value: serde_json::from_str::<Value>(&content).expect("failed to convert from JSON"),
variables: HashMap::new(),
variables: HashMap::from([("FILE".to_owned(), config.template.clone().into())]),
}
}